rethinkdb / horizon

Horizon is a realtime, open-source backend for JavaScript apps.
MIT License
6.78k stars 349 forks source link

fix: don't eagerly create handshake #752

Closed deontologician closed 8 years ago

deontologician commented 8 years ago

fixes #663

Issue was that we eagerly constructed the handshake in the Horizon constructor, which was an error since we don't know if we have a token yet. Now we defer until the time when an actual connection to the server is required.


This change is Reviewable