Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Nicko Guyer <nicko.guyer@kaleido.io>
  • Loading branch information
nguyer committed Feb 28, 2024
1 parent 4d59b01 commit d6cbee7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/eventstream-proxy/eventstream-proxy.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,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);
}
}
});
}
Expand Down

0 comments on commit d6cbee7

Please sign in to comment.