socket.io
socket.io copied to clipboard
Realtime application framework (Node.JS server)
Description I'm experiencing CORS issues specifically during Socket.IO reconnection attempts in Firefox, while Chrome works fine. The initial connection works in both browsers, but Firefox fails to reconnect with: ```...
**Describe the bug** It produces `Uncaught TypeError: Illegal invocation` error when calling `io()` context: I'm working in a react project where valtio is used for state manamement. **To Reproduce** Socket.IO...
**Describe the bug** Seems like the "initial_headers" (and also "headers") event is never emitted when using Socket.IO with uWebSockets. Need a way to attach headers to the http handshake response....
TS: Exported variable X has or is using name Y from external module Z but cannot be named.ts(4023)
**Describe the bug** There are many type errors shown within the editor (VS code) that result from the use of the ‘socket’ type. Building the application does not throw any...
With version 4.8.1 of socket.io-client and Node.js 22, "@types/node": "22.13.5" and "typescript": "^5.7.3", I have a build error: ```text node_modules/engine.io-client/build/esm/transports/polling-xhr.d.ts:65:58 - error TS2304: Cannot find name 'XMLHttpRequest'. 65 constructor(createRequest: (opts:...
### Discussed in https://github.com/socketio/socket.io/discussions/5291 Originally posted by **mrafieefard** February 13, 2025 Hello I am creating a react app that users should deploy their own socketio server and then specify their...
**Describe the bug** In the engine.io WebSocket transport, when a close packet is received, it is sent to the top in onPacket and the connection continues functioning as if nothing...
It seems Valkey is becoming a popular alternative to Redis. Are there any plans on providing an official Valkey adapter for Socket.io? Preferably based on streams, since that is more...
**Describe the bug** `emitWithAck` doesn't seem to be picking up types correctly, so the type variable `Ev` is assigned `never`. **To Reproduce** Socket.IO server version: `4.8.1` *Server* ```typescript import {...
### Discussed in https://github.com/socketio/socket.io/discussions/5272 Originally posted by **arpitkapoor97** January 1, 2025 Consider below scenarios, when I am trying to connect a client from a different PORT/URL. ` const app =...