Close error on httpServer close when attaching multiple Server instance to same httpServer #4002
-
Hi, I created multiple Server instances specifying different paths (not namespaces) like to close socket.io & close httpServer explicitly? async shutdown(): Promise { Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi!
Yes. I would add a That being said, I'm wondering whether we should actually close the underlying HTTP server if it was provided by the user. WDYT? |
Beta Was this translation helpful? Give feedback.
Hi!
Yes. I would add a
local
flag (ioServer?.local.disconnectSockets(true)
), if you are in a multi-server setup.That being said, I'm wondering whether we should actually close the underlying HTTP server if it was provided by the user. WDYT?