Replies: 1 comment 1 reply
-
Ok I'm idiot :] let ws = new WebSocket("ws://localhost:3000/ws")
ws.send("SAD") server App({})
.ws("/ws", {
message: (ws, message, isBinary) =>{
console.log(message)
}})
.listen(3000)
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi, I'm trying to write a chat and not sure how to implement client part in the browser? I saw socket.io for it and
in browser (js) we just need this:
How to do that in the uWS ?
Beta Was this translation helpful? Give feedback.
All reactions