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 @@ +