issues
search
RocketChat
/
Rocket.Chat.js.SDK
Utility for apps and bots to interact with Rocket.Chat via DDP and/or API
MIT License
136
stars
95
forks
source link
[FIX] Some fixes
#110
Open
djorkaeffalexandre
opened
4 years ago
djorkaeffalexandre
commented
4 years ago
Configurable Custom Headers to rest/websocket
Resolve any send (unsub need an id emit)
Clear timeout/interval at
close
function instead
onClose
, apparently sometimes
onClose
is called with code
1000
by other handler
reopen immediately when called instead after timeout
send some message await an
open
event when send before the websocket readyState equal 1
resubscribe with the same id, no duplicate streams
Open a stream, minimize the app, back after 60 seconds, it'll call
subscribeAll
and send the same id of the previous streams
Handle
open
retry
close
function insteadonClose
, apparently sometimesonClose
is called with code1000
by other handleropen
event when send before the websocket readyState equal 1subscribeAll
and send the same id of the previous streamsopen
retry