-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add basic WAMP client #4
Conversation
9d08cae
to
071fe81
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TL;DR we need new types Result, Invocation and Event. They wont include request id etc
lib/src/session.dart
Outdated
Future.microtask(() async { | ||
while (true) { | ||
await _baseSession.receive().then( | ||
(value) => _processIncomingMessage(_wampSession.receive(Uint8List.fromList((value as String).codeUnits))), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might want to assign values first and use them instead of chaining them
lib/src/session.dart
Outdated
|
||
final Map<int, Completer<Result>> _callRequests = {}; | ||
final Map<int, RegisterRequest> _registerRequests = {}; | ||
final Map<int, Yield Function(Invocation)> _registrations = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as user api is concerned this should have a new class Result AND Invocation defined in types. So instead of Yield we will use Result. NOTE Result wont be a wamp message type but rather a normal class. See wamp.py
No description provided.