stream-js icon indicating copy to clipboard operation
stream-js copied to clipboard

Protect against running multiple Stream/Faye clients

Open tschellenbach opened this issue 8 years ago • 3 comments

Running multiple Faye clients leads to this bug:

https://github.com/GetStream/stream-js/issues/72

Which is very obscure and hard to debug. Wonder if we could provide a better error.

tschellenbach avatar Dec 12 '17 19:12 tschellenbach

i believe this is related to #198: ~~take a look at ~~ after reading more carefully the code it looks like that the reference client doesn't care about about the the subscription.

thesyncim avatar Sep 07 '18 11:09 thesyncim

@tschellenbach correct me if I wrong but AFAIK we observed this issue back when we were still using the JS implementation of Faye server-side and concluded that the problem was client-side

tbarbugli avatar Sep 07 '18 12:09 tbarbugli

Yeah this is broken with the standard Faye server. ID generation is global, so if you start 2 clients you get clashes.

tschellenbach avatar Sep 07 '18 15:09 tschellenbach