0.0.1 • Published 3 years ago
@ayezee/zews v0.0.1
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
});
0.0.1
3 years ago