Closed andywatts closed 8 years ago
How are you building the browserify bundle for this library?
This is working fine for me in mqtt.
Using beefy, which in turn uses browserify.
beefy demo.js:bundle.js
Actually trying to update maxogden/voxel-client. It's pinned to websocket-stream v0.0.5 Get the 'undefined' error when I update voxel-client to use websocket-stream v2.0.2
Apologies. This was due to old beefy/browserify
index.js requires server.js server.js creates a ws server instance. This is undefined when in a browser. server.js then tries to inherit prototypes from this undefined WebSocketServer. This inherit throws an error.
test-client isn't capturing this.