- .catch(() => {
- /* Error caught by AbstractUIService */
- });
- });
- ws.on('error', (error) => {
- logger.error(`${this.logPrefix(moduleName, 'start.ws.onerror')} WebSocket error:`, error);
- });
+ .then((protocolResponse?: ProtocolResponse) => {
+ if (protocolResponse != null) {
+ this.sendResponse(protocolResponse)
+ }
+ })
+ .catch(Constants.EMPTY_FUNCTION)
+ })
+ ws.on('error', error => {
+ logger.error(`${this.logPrefix(moduleName, 'start.ws.onerror')} WebSocket error:`, error)
+ })