Skip to content

Commit

Permalink
Merge pull request #28 from muzzammilshahid/fix-publish
Browse files Browse the repository at this point in the history
publish: don't crash on empty options
  • Loading branch information
muzzammilshahid authored May 18, 2024
2 parents 9bb928b + 93bef9f commit b88d82d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/session.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ class Session {
_publishRequests[publish.requestID] = completer;
_baseSession.send(_wampSession.sendMessage(publish));

if (options != null && options["acknowledge"]) {
var ack = options?["acknowledge"] ?? false;
if (ack) {
return completer.future;
}

Expand Down

0 comments on commit b88d82d

Please sign in to comment.