Skip to content

Commit 590d931

Browse files
authored
Merge pull request #78 from xconnio/handle-goodbye-in-send-message
handle goodbye in send message function
2 parents de054d8 + f788f92 commit 590d931

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/session.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ export class WAMPSession {
6262
}
6363

6464
this._invocationRequests.delete(msg.requestID);
65+
} else if (msg instanceof Goodbye) {
66+
// No handling needed, just serialize the Goodbye message
6567
} else {
6668
throw Error(`unknown message type ${typeof msg}`);
6769
}

0 commit comments

Comments
 (0)