mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
11 lines
281 B
TypeScript
11 lines
281 B
TypeScript
/// <reference path="socket.io-client.d.ts"/>
|
|
|
|
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.');
|
|
});
|
|
});
|