Open MrSpider opened 6 years ago
Instead of exposing the socker directly to user API, a better fit would be to add another transport option (for transports of type websocket
): https://github.com/crossbario/autobahn-js/blob/master/doc/reference.md#connection-options
Native websockets allow checking the amount of bytes in the send buffer via
socket.bufferedAmount
We are using this to do rate limiting for slow connections.There is currently no way to access the raw socket from the WebSocket transport. Maybe one could save the socket into
transport._socket
?If this would be an acceptable solution then I'll make a pull request.