websocket-ts icon indicating copy to clipboard operation
websocket-ts copied to clipboard

A WebSocket for browsers with optional auto-reconnect and message buffering written in TypeScript.

Results 9 websocket-ts issues
Sort by recently updated
recently updated
newest added

I would like a way to be able to determine when my message actually gets sent or whether it gets dropped from the buffer. Would you consider adding an async...

enhancement

Use case: Websocket protocol value is used for sending auth token, which expires after some time. A new token needs to be fetched and set(in the protocol) before reconnecting The...

Allow invoke `sendAsync` function and wait for successful event with predicate

Small changes that improve developer experience with this library Before: documentations is not visible in IDE After: documentations is visible in IDE and easy to understand for developers

Problem: hundreds of WebSocket connections are kept open even if they aren't being used. Why use backoff at all? Because this is part of a distributed system. If the WebSocket...

In consumer code it is not possible to use a string in the event listener: ![image](https://github.com/jjxxs/websocket-ts/assets/3639540/c2cf6b3c-3ea9-47a7-aeec-9d9719436021) The only way is to import the the `WebsocketEvent` enum and use `WebsocketEvent.open`. IMO...

Right now url is static, whilee sometines you might be getting either the function or promise which might return different urls between retries

This PR adds two features: * allow modification url after the websocket is built. ex: `ws.url = 'some_new_url'` * allow async events handlers: ex: ``` WebsocketBuilder.onRetry(async (ws, ev) => {...