deepstreamio-server-client-plugin
A plugin to expose a deepstream client on the server
Install
npm i -D deepstreamio-server-client-plugin
Usage
const server = /* create deepstream server */; // Attach to serverconst port = 6021; // Your server's TCP portconst bytes = 64; // More bytes = more secure but slower; // extendPermissionHandler handles authenticating the server for you, and then// defers to your permissionHandlerserver; // Wait for "clientReady" before you try to use the client// "clientReady" won't fire until the server startsserver;
Developing
This project uses the RISE yeoman generator. For development workflow, see the workflow guide. Cheatsheet:
- Add code to
src/index.js
and tests totest/index.js
. - Lint, build and test a project with
npm run build
. - Build and watch changes in
src/
withnpm run watch
- Run only tests with
npm run test
. - Check coverage with
npm run coverage
. - Generate a TOC for the
CHANGELOG
withnpm run toc
- Deploy to a remote origin with
npm run deploy
. - Bump version and publish a package with
npm run major
orminor/patch
License
MIT © Chris Morrell