We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3645741 commit 0a17c90Copy full SHA for 0a17c90
test/socket.io.js
@@ -1505,6 +1505,19 @@ describe('socket.io', function(){
1505
});
1506
1507
1508
+
1509
+ it('should not crash with raw binary', function(done){
1510
+ var srv = http();
1511
+ var sio = io(srv);
1512
+ srv.listen(function(){
1513
+ var socket = client(srv);
1514
+ sio.on('connection', function(s){
1515
+ s.conn.on('upgrade', function(){
1516
+ s.conn.write('5woooot');
1517
+ });
1518
1519
1520
1521
1522
1523
describe('messaging many', function(){
@@ -1827,7 +1840,6 @@ describe('socket.io', function(){
1827
1840
1828
1841
1829
1842
1830
-
1831
1843
1832
1844
1833
1845
describe('middleware', function(done){
0 commit comments