AyeZee's WebSocket Client
Installation
$ npm add @ayezee/zews
# or yarn
$ yarn add @ayezee/zews
Example
import {Zews} from "@ayezee/zews";
const zews = new Zews("wss://echo.websocket.org", {
heartbeats: false,
onMessage(message) {
console.log(message);
}
});
zews.send({
type: "hello",
broadcast: true
});