From 511cde8b917ed0b0b4830c773676e4a3cd0ba4f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maido=20Ka=CC=88a=CC=88ra?= Date: Sun, 16 Feb 2014 15:21:15 +0000 Subject: [PATCH] Fixed test --- socket.io-client/socket.io-client-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.'); }); });