Skip to content

Commit

Permalink
Use direct assignment for max WAMP ID value to support browser limit
Browse files Browse the repository at this point in the history
  • Loading branch information
muzzammilshahid committed Jun 8, 2024
1 parent d4d5ec4 commit 2978fa8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/messages/util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import "package:wampproto/src/messages/validation_spec.dart";
final Set<String> allowedRoles = <String>{"callee", "caller", "publisher", "subscriber", "dealer", "broker"};

const minID = 1;
const maxID = 1 << 53;
// Maximum WAMP ID value (2^53 - 1), supported by the browser
const maxID = 9007199254740992;

class Fields {
int? requestID;
Expand Down

0 comments on commit 2978fa8

Please sign in to comment.