mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-14 12:30:47 +08:00
Fixed test
This commit is contained in:
1 parent
d20a2330b8
commit
511cde8b91
1 file changed
+2
-2
@@ -1,10 +1,10 @@
|
||||
import io = require('socket.io-client');
|
||||
|
||||
var socket = io('http://localhost:80');
|
||||
var socket = io.connect('http://localhost:80');
|
||||
|
||||
socket.on('connect', function () {
|
||||
console.log('Connected!');
|
||||
socket.send('some test data', function () {
|
||||
socket.emit('event', 'some test data', function () {
|
||||
console.log('Sent some data.');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user