taoensso / sente

Realtime web comms library for Clojure/Script
https://www.taoensso.com/sente
Eclipse Public License 1.0
1.74k stars 193 forks source link

detecting the state of chsk #331

Closed WIZARDELF closed 1 year ago

WIZARDELF commented 5 years ago

before i do server>client chsk-send!, is it possible to check whether chsk for that client-id is open or not? and how?

WIZARDELF commented 5 years ago

i investigated the code and tried some options i'd found. it seems that utilizing connected-uids is a reasonable solution. please correct me if there is a better way.

ptaoussanis commented 1 year ago

Your current approach is reasonable, apologies for the long delay replying.