Affects Version/s: None
Fix Version/s: None
At the moment, if a gpii.nexusWebSocketBoundComponent is unable to make a connection to the Nexus, it fails silently. The component will appear to have been instantiated properly but it has no Nexus connection.
There are 2 requests made to the Nexus:
- Construct the peer (if managesPeer is true)
- WebSocket connection to the peer model
The peer is constructed with a call to gpii.nexus.utils.sendRequestWithJsonBody(), which uses http.request() to make the request. Here we can do:
For the WebSocket connection, I think we can do:
And we should also do:
Rather than always firing onWebSocketConnectedEvent immediately after making the WebSocket.