https://github.com/synrc/sample
💧 SAMPLE: WebSocket Sample Application
https://github.com/synrc/sample
Last synced: 10 months ago
JSON representation
💧 SAMPLE: WebSocket Sample Application
- Host: GitHub
- URL: https://github.com/synrc/sample
- Owner: synrc
- Created: 2018-11-13T22:17:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-08T23:55:26.000Z (over 2 years ago)
- Last Synced: 2025-08-08T03:34:35.929Z (11 months ago)
- Language: Erlang
- Homepage: https://sample.n2o.dev
- Size: 152 KB
- Stars: 10
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
SAMPLE: WebSocket Application
=============================
[](https://travis-ci.com/synrc/sample)
NITRO/N2O pages that work on top of raw COWBOY/RANCH connections.
Intro
-----
SAMPLE application consist of two page modules `login` and `index`.
It creates WebSocket connection to `n2o` server.
The permanent example is accesible at https://sample.n2o.dev/index.htm.
Index
-----
Init event.
Chat event.
Client event.
File Transfer event.
Login
-----
Channel init.
Login event.
Setup
-----
To run review application just clone, build and run:
```
$ rebar3 get-deps
$ rebar3 shell
```
Then open it in browser:
```
$ open http://localhost:8001/app/login.htm
```
Credits
-------
* Brought with ❤ by N2O community