Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 nodejs ws 模块来实现 websockets。套接字坏了,但我继续收到 ping 消息。我已将心跳功能配置为在损坏时自动关闭并重新启动,但由于 ping 消息不断出现,套接字重新启动没有触发。
尽管套接字被破坏,为什么继续收到 ping 消息的任何原因?