From 3e8f870844382e1fd7cf2aa2ae0e540771b289ee Mon Sep 17 00:00:00 2001 From: Roy Segall Date: Sun, 14 Jun 2015 22:33:23 +0300 Subject: [PATCH] Fix example and the socket.io definition. --- example.php | 15 ++++++--------- socket.io.php | 2 ++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/example.php b/example.php index f4b8ae3..5463714 100644 --- a/example.php +++ b/example.php @@ -2,14 +2,11 @@ include_once ('socket.io.php'); -//Create a socket.io connection and send a simple message +// Create a socket.io connection and send a simple message. $socketio = new SocketIO(); -if ($socketio->send('localhost', 9090, 'Hello world!')){ - echo 'we sent the message and disconnected'; -} else { - echo 'Sorry, we have a mistake :\'('; +if ($socketio->send('localhost', 3000, 'chat message', 'foo')) { + echo 'we sent the message and disconnected'; +} +else { + echo 'Sorry, we have a mistake :\'('; } - - - -?> \ No newline at end of file diff --git a/socket.io.php b/socket.io.php index e762c3a..b597b63 100644 --- a/socket.io.php +++ b/socket.io.php @@ -1,3 +1,5 @@ +