@gaman/[email protected] #21
angga7togk
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What's
@gaman/websocket@gaman/websocketis a GamanJS module for creating and managing WebSocket connections easily.Installation
npm i ws @gaman/websocket # if using typescript npm i --save-dev @types/wsBasic Example
initial websocket module
create websocket handler
register websocket handler to routes
and then connect to
ws://localhost:3431/chatif you using
wscatuse this commandwscat -c ws://localhost:3431/chatand then type message and enterWebsocket Middleware
create message middleware handler
register to your route
Full Changelog: https://github.com/7TogkID/gaman/compare/@gaman/[email protected]...@gaman/[email protected]
This discussion was created from the release @gaman/[email protected].
Beta Was this translation helpful? Give feedback.
All reactions