We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 590d931 + 3d29f55 commit 95e8de7Copy full SHA for 95e8de7
lib/session.ts
@@ -182,18 +182,13 @@ export class WAMPSession {
182
}
183
break;
184
185
-
186
- case Goodbye.TYPE: {
187
- return msg;
188
- }
189
190
- case Abort.TYPE: {
191
192
193
194
default:
195
throw Error(`unknown error message type ${typeof msg}`)
196
+ } else if (msg instanceof Abort) {
+ // No handling needed, just return the message
+ } else if (msg instanceof Goodbye) {
197
} else {
198
throw Error(`unknown message ${typeof msg}`)
199
0 commit comments