Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (25 sloc) 0.599 kB

nodejitsu-wss

Quick example app to show how to deploy a websocket app using wss:// on nodejitsu

Do it

  1. npm install
  2. edit package.json:
    "name": "<your app name>",
    "subdomain": "<your subdomain>",
    "version": "<your version>",
  1. edit index.html:
    io.connect('wss://<your subdomain>.nodejitsu.com');
  1. jitsu deploy

Test it

  1. sudo node server.js
  2. open http://localhost/
  3. click "connect"

It should show the messages in the console log, which means it communicated to your nodejitsu.com subdomain over wss://

Jump to Line
Something went wrong with that request. Please try again.