diff --git a/socket.io-client/socket.io-client-tests.ts b/socket.io-client/socket.io-client-tests.ts index f4171fe15..7b5f96747 100644 --- a/socket.io-client/socket.io-client-tests.ts +++ b/socket.io-client/socket.io-client-tests.ts @@ -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.'); }); });