hivejs / hive

:rocket: A real-time collaboration platform :zap:
http://hivejs.org
Other
50 stars 6 forks source link

Editor: Separate onBroadcastInit from onLoad, so onLoad can be `setImmediate`d #16

Closed marcelklehr closed 8 years ago

marcelklehr commented 8 years ago

Turns out the problem was not a race condition, but the server part of cursorBroadcast being activated even if the client part wasn't (e.g. on a text document)

marcelklehr commented 8 years ago

Nope, it was both, I guess: Race condition (server sending messages over the wire before the client has registered the streams) and cursorBroadcast sending messages for the wrong document type.

marcelklehr commented 8 years ago

fixed.