uNetworking / uWebSockets.js

μWebSockets for Node.js back-ends :metal:
Apache License 2.0
7.76k stars 563 forks source link

TypeScript: add missing "query" and "url" properties to WebSocket #898

Closed endel closed 1 year ago

endel commented 1 year ago

Added missing properties to TypeScript definitions file.

uNetworkingAB commented 1 year ago

This doesn't seem right? How do you mean here?

endel commented 1 year ago

Hi @uNetworkingAB, I have been using these properties for a while, not sure exactly where they come from, but they do exist: https://github.com/colyseus/colyseus/blob/072c33299aea31766cc817eef6c4e1f5cff32740/packages/transport/uwebsockets-transport/src/uWebSocketsTransport.ts#L137C1-L140

endel commented 1 year ago

Oops, sorry this is unrelated, it's on my own code. 🤦‍♂️