diff --git a/src/eventstream-proxy/eventstream-proxy.base.ts b/src/eventstream-proxy/eventstream-proxy.base.ts index 5d9696e..45a400c 100644 --- a/src/eventstream-proxy/eventstream-proxy.base.ts +++ b/src/eventstream-proxy/eventstream-proxy.base.ts @@ -77,13 +77,15 @@ export abstract class EventStreamProxyBase extends WebSocketEventsBase { client.on('message', async (message: string) => { const action = JSON.parse(message) as WebSocketActionBase; switch (action.type) { - case 'start': + case 'start': { const startAction = action as WebSocketStart; this.startListening(client, startAction.namespace); break; - case 'ack': + } + case 'ack': { const ackAction = action as WebSocketAck; this.handleAck(client, ackAction); + } } }); }