robtaussig / react-use-websocket

React Hook for WebSocket communication
MIT License
1.63k stars 135 forks source link

Fix TypeError: message is null #87

Closed TownCube closed 3 years ago

TownCube commented 3 years ago

I was getting a "TypeError: message is null" error when using the wss://echo.websocket.org endpoint before the page would display for the first time.

robtaussig commented 3 years ago

Thanks for catching it and for the fix! Merged.