We are having issuses using server.fetchSockets() in socket.io redis nodes. When a server call this function the others servers are throwing this exception:
C:\path\node_modules\socket.io-redis\dist\index.js:212
response = JSON.stringify({
^
TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Pool'
| property 'config' -> object with constructor 'PoolConfig'
| property 'connectionConfig' -> object with constructor `ConnectionConfig'
--- property 'pool' closes the circle
at JSON.stringify (<anonymous>)
at RedisAdapter.onrequest (C:\Users\pach\Documents\trace gaming\new\node\node_modules\socket.io-redis\dist\index.js:212:33)
at processTicksAndRejections (node:internal/process/task_queues:94:5)
and the server that is calling the function gets a timeout.
Sending and receiving events are working fine.
socket.io 4.1.1 socket.io-redis 6.1.1