Skip to content

Commit

Permalink
Expanded 'How to Use' in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
achesser committed Sep 26, 2011
1 parent 7db146d commit ed7cedd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ Finally, load it from the client side code:
</script>
```

The client-side javascript is not a static file, but instead is served through the
same port that the socket is listening on. In many configurations, port 80 will already
be running a web service and the socket.io listener will have to be moved to another
port. If you set (for example) `app.listen(8000);` then your script source will require:

`<script src="http://localhost:8000/socket.io/socket.io.js"></script>`

For more thorough examples, look at the `examples/` directory.

## Short recipes
Expand Down

0 comments on commit ed7cedd

Please sign in to comment.