事件回调
每个client可以有多个channels
below link is really helpful!!!!
https://www.roytuts.com/server-sent-events-spring-push-notifications/
服务器端不要主动关闭, 等待客户端关闭, 或者设置超时, 超时单位为毫秒
可以用ConcurrentHashMap保存用户id和SseEmitter的对应关系。
事件回调
每个client可以有多个channels
below link is really helpful!!!!
https://www.roytuts.com/server-sent-events-spring-push-notifications/
服务器端不要主动关闭, 等待客户端关闭, 或者设置超时, 超时单位为毫秒
可以用ConcurrentHashMap保存用户id和SseEmitter的对应关系。