0.2.0 • Published 3 years ago
@uprtcl/socket-provider v0.2.0
@uprtcl/socket-provider
This node package includes basic _Prtcl provider wrappers around socket.io.
Documentation
Visit our documentation site.
Install
npm install @uprtcl/socket-provider
Usage
Import the appropriate connection you would like to use, and make a new instance of it by passing its configuration:
import { SocketConnection } from '@uprtcl/socket-provider';
const socketConnection = new SocketConnection({
// domain: domain,
});
await socket.ready();
0.2.0
3 years ago