Brot
Brot
CDCloudflare Developers
Created by Brot on 12/2/2023 in #workers-help
Hibernatables WebSockets API – get tag of current websocket in webSocketMessage handler
I use a Durable Object for a chat-like application. Every client gets an unique id. I set a tag with the id when accepting the socket. In the webSocketMessage handler I now need to know the id of the socket whose message I’m handling. Is there a way to access the information? Or Maybe the original url parameters?
3 replies