Open mikelgmh opened 8 months ago
If you want to use uWebSocket functionality, Elysia exposes the uWebSocket socket in the raw
prop.
This is an assumption btw, based on some tests I've been doing. Can't verify right now but you can.
If you want to use uWebSocket functionality, Elysia exposes the uWebSocket socket in the
raw
prop.This is an assumption btw, based on some tests I've been doing. Can't verify right now but you can.
Unfortunately the subscription()
callback is missing in the raw
property of the socket, but is missing on the Bun.js websockets callbacks documentation too. Thank you anyway!
There are some uWebSockets functionalities missing in bun.js. Check this GitHub issue: https://github.com/oven-sh/bun/issues/2988
There are some uWebSockets functionalities missing in bun.js. Check this GitHub issue: oven-sh/bun#2988
is this issue still open? If yes i want to work on it
There are some uWebSockets functionalities missing in bun.js. Check this GitHub issue: oven-sh/bun#2988
is this issue still open?
If yes i want to work on it
Yes, the issue is still open in both repositories.
In the Elysia WebSockets documentation I see that there are 4 callback functions:
close()
open()
message()
drain()
But there are some useful ones that are missing that are in the uWebSockets library documentation.
ping()
subscription()
...The
subscription()
callback function is specially important to handle the subscriptions to topics and to track users in websockets. Is there any plan to add these callback functions?