Skip to content

Commit

Permalink
Merge pull request #116 from muzzammilshahid/handle-goodbye
Browse files Browse the repository at this point in the history
Handle goodbye in session
  • Loading branch information
muzzammilshahid authored Jul 4, 2024
2 parents c33bd7a + e58bd1d commit 3b66918
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/session.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ class WAMPSession {
var data = _serializer.serialize(msg);
_invocationRequests.remove(msg.requestID);
return data;
} else if (msg is Goodbye) {
return _serializer.serialize(msg);
}
throw ProtocolError("unknown message ${msg.runtimeType}");
}
Expand Down Expand Up @@ -195,6 +197,8 @@ class WAMPSession {
throw ProtocolError("unknown error message type ${msg.runtimeType}");
}

return msg;
} else if (msg is Goodbye) {
return msg;
}

Expand Down
1 change: 1 addition & 0 deletions lib/uris.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export "src/uris.dart";

0 comments on commit 3b66918

Please sign in to comment.