SocketCluster / socketcluster-client

JavaScript client for SocketCluster
MIT License
293 stars 91 forks source link

Fix for web worker #65

Closed oskarer closed 7 years ago

oskarer commented 7 years ago

Since window isn't available in a web worker it was not able to find WebSocket, which is located at self.WebSocket.

jondubois commented 7 years ago

@oskarer Thanks! I'll try to publish this to npm this weekend sometime.