Websockets agent
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
node_modules
Procfile
README.md
app.js
app.json
index.html
package-lock.json
package.json

README.md

Websocket

This example contains:

  1. Websockets Web Client: index.html
  2. Websockets Server: app.js
  3. Jasonette markup that uses index.html as an agent: app.json

Try it out

Since this example requires a server, you can try the deployed versiont at http://wsjason.herokuapp.com/.

First check that the websocket chat works between multiple different browsers.

Then open app.json on Jasonette to make it run as a Jasonette native app.

To try on your own server

Open app.json and just change the $jason.head.agents.ws.url to your agent HTML URL.