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.
我正在构建一个具有多个 SignalR 实例的系统,每个实例都连接到消息总线。
给定一个连接 id,有没有办法检查连接 id 是否存在?如果不是,那么在服务器端执行此操作的最佳做法是什么?
谢谢
当 OnDisconnected 在您的集线器上触发时,有问题的连接 ID 不再存在。