crossws
crossws copied to clipboard
🔌 Cross-platform WebSocket Servers for Node.js, Deno, Bun and Cloudflare Workers.
### Describe the feature I noticed that there is no way to close the client on the server side. Ideally there should at least be a function Peer.close(code: number =...
### Describe the feature Here you also need to add an authentication check during the upgrade handshake, for example, only authorized users can enter the socket in order to then...
crossws already exposes universal `crossws/websocket` subpath export with [WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket) API. (NEEDS TO BE DOCUMENTED) We might make DX better by providing a potentially typed and easier-to-control API similar to what...
### Describe the feature How can we access the CF WebSocket client to open a new connection from the server to another web socket server? ### Additional information - [...
### 🔗 Linked issue ### ❓ Type of change - [ ] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations) - [ ] 🐞 Bug fix (a non-breaking...
### Describe the feature Hi, first thanks to this very cool library and the integration with nitro and nuxt. Is it possible to have `Sec-WebSocket-Extensions: permessage-deflate` when answering a client...
### Describe the feature I'm glad that they started developing this library. I looked at the code and noticed that it lacks synchronization between servers. For example, pub/sub sends only...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`^22.3.0` -> `^22.4.1`](https://renovatebot.com/diffs/npm/@types%2fnode/22.3.0/22.4.1) |...
### Environment Bun 1.1.29 Crossws 0.3.1 ### Reproduction 1. Create a bun crossws instance 2. Define a close hook 3. Run `peer.close(4001, "some reason");` ### Describe the bug using `peer.close(4001,...