Safely resolve `ws` module.
After changing the `ws` dependency to be ignored, not exluded, by https://github.com/socketio/engine.io-client/pull/451 if the target runtime does not provide a `ws` module an error is throw. This is the case with NativeScript which currently does not have a WebSocket implementation. The change is using safe resolution with try-catch preseving the old behavior in a controlled manner.
S
Stefan Dobrev committed
9c08f405a31c6ca1b7f4d7a963101be4d54dde42
Parent: e69f540