Skip to content

Commit

Permalink
README: simplified client constructor example
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Sep 4, 2012
1 parent 5427d20 commit 18da616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ httpServer.on('request', function (req, res) {
```html
<script src="/path/to/engine.io.js"></script>
<script>
var socket = new eio.Socket({ host: 'localhost', port: 80 });
var socket = new eio.Socket('ws://localhost/');
socket.on('open', function () {
socket.on('message', function (data) { });
socket.on('close', function () { });
Expand Down

0 comments on commit 18da616

Please sign in to comment.