ClusterWS / ClusterWS-Client-JS

:fire: JavaScript Client for ClusterWS - lightweight, fast and powerful framework for building scalable WebSocket applications in Node.js.
MIT License
115 stars 10 forks source link

Fixed getState calls that happen before this.websocket is defined #47

Closed rotem-bar closed 6 years ago

rotem-bar commented 6 years ago

Submitting

Details

When using client.getState() while rending (in vue for example), there are cases where the client is created but the websocket property of it is not instantly defined, resulting in the following error:

error

goriunov commented 6 years ago

Thanks for fix :)