Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[faq] add socket.io tying

  • Loading branch information...
commit 56e5f4f0ea19a851ade258cfd832d8ef9ca173ca 1 parent 53a2627
@Swaagie Swaagie authored
Showing with 19 additions and 1 deletion.
  1. +18 −0 content/a-quickstart/faq.md
  2. +1 −1  content/jitsu/index.md
View
18 content/a-quickstart/faq.md
@@ -281,4 +281,22 @@ change you will loose previous snapshots and other configured settings.
To change the application name do `jitsu destroy`, confirm and finally redeploy
with `jitsu deploy`. Both commands must be executed within the project folder.
+---
+
+## How can I use Socket.IO alongside a http server?
+
+We reroute all traffic to port 80. To use a http server and socket.IO over the
+same port, you need to tie socket.IO in http. [Socket.IO documentation][docs] will
+provide a clear example or try our demo app `jitsu install socket.io`.
+To give you a general idea of the logic:
+
+```
+var app = require('express')()
+ , server = require('http').createServer(app)
+ , io = require('socket.io').listen(server);
+
+server.listen(8080);
+```
+
+[docs]: http://socket.io/#how-to-use
[meta:title]: <> (FAQ)
View
2  content/jitsu/index.md
@@ -85,7 +85,7 @@ visit *http://localhost:8080/*. If you get an `EADDRINUSE` error the *port 8080*
is already in use. Close the other application before starting the helloworld
demo.
-This application is running locally ofcourse, see [deploying][deploy] under
+This application is running locally, see [deploying][deploy] under
additional commands to get it running on our cloud.
## Additional commands
Please sign in to comment.
Something went wrong with that request. Please try again.