Skip to content

Commit

Permalink
allow to be notified on web socket raw event (like ping)
Browse files Browse the repository at this point in the history
Change-Id: I
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
  • Loading branch information
benoitf committed Feb 22, 2017
1 parent 2fe99bc commit c6f0699
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dashboard/src/components/api/che-websocket.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,10 @@ export class MessageBus {
}
}

// handle case when we don't have channel but a raw message
if (!channelHeader && headers.length == 1 && headers[0].name === 'x-everrest-websocket-message-type') {
channelHeader = headers[0];
}

if (channelHeader) {
// message for a channel, look at current subscribers
Expand Down

0 comments on commit c6f0699

Please sign in to comment.