mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-27 11:40:08 +08:00
11 lines
270 B
TypeScript
11 lines
270 B
TypeScript
import io = require('socket.io-client-0.9');
|
|
|
|
var socket = io.connect('http://localhost:80');
|
|
|
|
socket.on('connect', function () {
|
|
console.log('Connected!');
|
|
socket.emit('event', 'some test data', function () {
|
|
console.log('Sent some data.');
|
|
});
|
|
});
|