Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.
/ opsocket.js Public archive

A Fast NodeJS WebSocket Client Library, Designed for Heavy Usage and Abusage.

License

Notifications You must be signed in to change notification settings

gamer0mega/opsocket.js

Repository files navigation

Welcome to OPSocket.js!

What is OPSocket?

OPSocket is a Fast WebSocket Client for NodeJS, Designed for Heavy Usage and Abusage.

Moving to OPSocket.js v2.0.0 from v1.1.5

v2.0.0 is a breaking update.

What to Change?

External

WebSocket.state => WebSocket.status

WebSocket.url => WebSocket.options.url

Options - Accessing from outside

WebSocket.asyncIterator => WebSocket.options.asyncIterator

WebSocket.requestTimeout => WebSocket.options.requestTimeout

WebSocket.events => WebSocket.options.events

Timers

WebSocket.timeout => WebSocket.timers.open

WebSocket.closeTimeout => WebSocket.timers.close

Sockets

WebSocket.socket => WebSocket.sockets.tls

WebSocket.requestSocket => WebSocket.sockets.request

Frames

WebSocket.frameHeader => WebSocket.frames.header

WebSocket.bufferList => WebSocket.frames.bufferList

WebSocket.currentFrame => WebSocket.frames.current

Nonce Data

WebSocket.nonce => WebSocket.nonceData.initial

WebSocket.expectedNonce => WebSocket.nonceData.responseExpected

WebSocket.actualNonce => WebSocket.nonceData.responseActual

How to Use it?

You Can take a look at the WebSocket Class in Our Docs to see usage examples.

Support

Feel free to join our Discord Community and Support Server.

Please Note That The Client is Currently in Beta and May Have Bugs.

About

A Fast NodeJS WebSocket Client Library, Designed for Heavy Usage and Abusage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published