Thanks to visit codestin.com Credit goes to github.com
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 2c1b611 commit 318ae87Copy full SHA for 318ae87
test/socket.io.js
@@ -446,6 +446,28 @@ describe('socket.io', function(){
446
});
447
448
449
+ it('should emit events with utf8 multibyte character', function(done) {
450
+ var srv = http();
451
+ var sio = io(srv);
452
+ srv.listen(function(){
453
+ var socket = client(srv);
454
+ var i = 0;
455
+ socket.on('hoot', function(a){
456
+ expect(a).to.be('utf8 — string');
457
+ i++;
458
+
459
+ if (3 == i) {
460
+ done();
461
+ }
462
+ });
463
+ sio.on('connection', function(s){
464
+ s.emit('hoot', 'utf8 — string');
465
466
467
468
469
470
471
it('should emit events with binary data', function(done){
472
var srv = http();
473
var sio = io(srv);
0 commit comments