1.4.0 • Published 5 years ago
reveal-socket-remote v1.4.0
Reveal Remote
Build with socket.io and fastify.
Usage
- Clone this repo
Install dependencies:
```bash
With yarn
yarn
or with npm
npm install
Run server
```bash
node server/index.js --port 1337 --host 0.0.0.0
Setup your presentation
- Setup your reveal project
Install this from npmmn
```bash
With yarn
yarn add reveal-socket-remote
or with npm
npm install reveal-socket-remote --save
```
Import the plugin
// Setup your reveal stuff // [...] // Then import my plugin const { initRemoteSocket } = require('reveal-socket-remote'); // Now you can init the connection // The first argument needs to be the Reveal instance initRemoteSocket(Reveal, 'your server address here')