Skip to content

How do I serve the client

Jxck edited this page Jun 30, 2011 · 6 revisions

The client is served automatically by the Node.JS server. In your <head> tag of your HTML, include:

<script src="http:<uri:port>/socket.io/socket.io.js"></script>

If your web app and socket.io are on the same server and port, you can simply include:

<script src="/socket.io/socket.io.js"></script>

Clone this wiki locally