mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Fixed test
This commit is contained in:
@@ -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