事件回調
每個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的對應關係。