The Browser / Node Client for deepstream.io
For API documentation see the documentation page!
For tutorials see the tutorial page!
This repository comes with the Typescript typings bundled. No need to download them separately!
- Make sure the
src/client.d.ts
file is accessible to the Typescript compiler. Do this by making sure it's an included file in tsconfig.json by adding atypeRoots
defininition. (Required Typescript 2.0 or higher.)
"typeRoots": [ "./node_modules/deepstream.io-client.js/src/client.d.ts" ]
- Import the module in ES6 style.
import * as deepstream from 'deepstream.io-client-js';
const client = deepstream('http://localhost').login();
At Briteback we use Deepstream and will be aiming at fixing and improving Deepstream with some fixes and suggestions we have found might be useful.
- [] fix bottleneck on client with with "ack registry"
- [] fix crashes on closed sockets
- [] fix socket leaks
- [] fix records hanging and not sending update events for subscriptions
- [] fix clients not able to reconnect after server restart