Permalink
Browse files

Linking to new socket.io and getting DrawTogether working again

  • Loading branch information...
1 parent 9aa04e1 commit 6abbdfccc513a094f29f3e267bfca480723a5a43 @saikat committed Dec 3, 2010
View
@@ -0,0 +1,3 @@
+[submodule "lib/socket.io"]
+ path = lib/socket.io
+ url = git://github.com/LearnBoost/Socket.IO-node.git
View
@@ -35,13 +35,13 @@ var SharedSocket = nil;
{
delegate = aDelegate;
if ([delegate respondsToSelector:@selector(socketDidConnect:)])
- socket.addEvent('connect', function() {[delegate socketDidConnect:self]; [[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];});
+ socket.on('connect', function() {[delegate socketDidConnect:self]; [[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];});
if ([delegate respondsToSelector:@selector(socketDidClose:)])
- socket.addEvent('close', function() {[delegate socketDidClose:self]; [[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];});
+ socket.on('close', function() {[delegate socketDidClose:self]; [[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];});
if ([delegate respondsToSelector:@selector(socketDidDisconnect:)])
- socket.addEvent('disconnect', function() {[delegate socketDidDisconnect:self];[[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];});
+ socket.on('disconnect', function() {[delegate socketDidDisconnect:self];[[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];});
if ([delegate respondsToSelector:@selector(socket:didReceiveMessage:)])
- socket.addEvent('message', function(message) {[delegate socket:self didReceiveMessage:message]; [[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];});
+ socket.on('message', function(message) {[delegate socket:self didReceiveMessage:message]; [[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];});
}
- (void)sendMessage:(JSObject)jsonData
Oops, something went wrong.

0 comments on commit 6abbdfc

Please sign in to comment.