ClusterWS-Client-JS
ClusterWS-Client-JS copied to clipboard
Disable Log error
Submitting
- [ ] Bug
- [X] Question
- [ ] Suggetion
- [ ] Other
Please can you add an option to disable the logging into console?
To be bale to disable errors to the console you will need to catch them with on('error', () => {})
and/or try, catch
other vise it is standard of the browsers (not implemented in to the clusterws).
I trace the log exception and I found that the message is created at: this.websocket = new Socket(this.options.url), this.websocket.binaryType = "arraybuffer",
This must be into a try {} catch {} to be able to handle the exception
Otherwise I got always a browser log
Ok i will have a look at that. Probably will improve error handling.
Will go with version 4.0
Very good news 👍