websocketizer-client
v1.0.19
Published
Websocketizer client
Readme
websocketizer-client
Simple websocket client implementation to use with websocketizer-server
Getting start
import Client from 'websocketizer-client';
const client = new Client('ws://localhost:7001');
client.onConnect(() => {
client.emit('say', 'Hello world');
});
client.onDisconnect(() => {
//
});
client.connect();Build Setup
# install dependencies
npm install
# build for production with minification
npm run build
# start compiled version.
npm run start
# run lint in code
npm run lint