SyncPlay-js-client
Web port of the syncplay protocol.
Talks with syncplay server running on TCP/IP using a WebSockets bridge.
Quick start
- Run the syncplay server on locally. eg,
./syncplayServer --port 8995 --isolate-rooms
- Run a websockets bridge. like
./run localhost:9000 localhost:8995
- Run multiple instances of demo.html from your browser.
- Read the demo.html source for usage details.
Compiling manually
npm install
to install devDependencies like flow, babel plugins etcnpm run-script flow
to check for type errors. (src/syncplay.js)BABEL_ENV=prod babel --watch=./src --out-dir=./build
to generate js file in build folder (replace the env var "prod" with "dev" for retaining console.log messages etc)