-
Notifications
You must be signed in to change notification settings - Fork 16
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
send binary message to specific address #222
base: main
Are you sure you want to change the base?
Conversation
Test this pull request
|
08384b4
to
a849d19
Compare
@@ -11,8 +11,14 @@ message SendBinaryRequest { | |||
repeated bytes data = 1; | |||
} | |||
|
|||
message SendBinaryToAddress { |
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.
message SendBinaryToAddress { | |
message AddressedBinaryMessage ? { |
message SendBinaryResponse { | ||
repeated bytes data = 1; | ||
repeated SendBinaryToAddress messages_to_address = 2; |
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.
I dont like this name, maybe:
targeted_messages
private_messages
targeted_messages
address_messages
914a6c3
to
62a2430
Compare
} | ||
|
||
message SendBinaryToAddress { | ||
repeated bytes data = 1; |
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.
is ok that this is an array of data ?
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.
I think it should be bytes data = 1
, not an array of bytes
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.
what if you reach the size limit for a single message and you need to send it in chunks
62a2430
to
796129a
Compare
I would recommend the following messages: message SendBinaryRequest {
bytes data = 1; // broadcasted message
repeated string addresses = 2; // when set, only forward to these identities
}
message SendBinaryResponse {} This is based on the following: If I think it makes sense this way. WDYT? |
We can't go with this approach the way the SDK is performed. |
No description provided.