https://github.com/trailsjs/trailpack-realtime
:package: Realtime Trailpack. Synchronize the client and server via WebSockets
https://github.com/trailsjs/trailpack-realtime
realtime trailpack trails websocket
Last synced: about 2 months ago
JSON representation
:package: Realtime Trailpack. Synchronize the client and server via WebSockets
- Host: GitHub
- URL: https://github.com/trailsjs/trailpack-realtime
- Owner: trailsjs
- License: mit
- Created: 2015-12-01T18:21:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-13T04:21:29.000Z (about 7 years ago)
- Last Synced: 2025-04-17T20:40:09.390Z (about 2 months ago)
- Topics: realtime, trailpack, trails, websocket
- Language: JavaScript
- Size: 24.4 KB
- Stars: 5
- Watchers: 8
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# trailpack-realtime
:package: Realtime Trailpack. Synchronize the client and server via WebSockets## Getting Started
### Install
```js
npm install --save trailpack-realtime
```Then edit `config/main.js `
```js
packs: [
require('trailpack-core'),
require('trailpack-repl'),
require('trailpack-router'),
require('trailpack-express'),
require('trailpack-realtime')
],
```### Configure
Create the config file: `config/realtime.js `
```js
module.exports = {
primus:{
options:{
//these options are passed directly to the Primus constructor: https://github.com/primus/primus#getting-started
}
}
};
```## Client
You can include the primus client library as a script:
``````