long poll routing first version
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@ -67,6 +67,8 @@ message ToServerMessage {
|
||||
Invitation invitation = 9; // invitation for the 2 first steps of a "through server" invitation process
|
||||
|
||||
repeated PackedUserMessage device_messages = 10; // messages to another device belonging to the same user
|
||||
|
||||
int64 timeout = 11; // timeout expected by the client for the server to answer (long polling)
|
||||
}
|
||||
|
||||
message ConversationResponse {
|
||||
@ -140,10 +142,10 @@ message PackedUserMessage {
|
||||
message ConversationStatus {
|
||||
string uuid = 1;
|
||||
string answer_to_uuid=2; // message is an answer to another one, specify uuid here
|
||||
uint64 localSequence = 3 ;
|
||||
uint64 sent = 4 ;
|
||||
uint64 received = 5;
|
||||
uint64 processed = 6;
|
||||
uint64 localSequence = 3 ; // seq number in local conversation for custom reordering
|
||||
uint64 sent = 4 ; // timestamp of the message sent
|
||||
uint64 received = 5; // timestamp of the message received
|
||||
uint64 processed = 6; // timestamp of the message processed
|
||||
ContactCard my_next_identity = 7;
|
||||
int32 peer_next_identityAck = 8; // version of the new peer accepted id
|
||||
}
|
||||
@ -153,11 +155,12 @@ message Group{
|
||||
repeated ContactCard members = 2;
|
||||
}
|
||||
|
||||
|
||||
// structure defining information that might be exchanged between two peers.
|
||||
message UserMessage {
|
||||
string destination = 1; // Lookupkey
|
||||
string from = 2; // My public key for that contact
|
||||
string type = 3;
|
||||
string type = 3; // Message type
|
||||
bytes data = 4;
|
||||
ConversationStatus status = 5;
|
||||
ContactCard contact = 6;
|
||||
@ -167,9 +170,16 @@ message UserMessage {
|
||||
Location currentLocation = 10;
|
||||
bytes appdata = 11;
|
||||
Invitation invitation = 12;
|
||||
|
||||
}
|
||||
|
||||
// UserMessage types :
|
||||
// 1 : normal message (test, image, video, audio, file, etc)
|
||||
// 2 : status message (online, offline, busy, etc)
|
||||
// 3 : send avatar as file[0]
|
||||
// 4 : location request
|
||||
// 5 : location response
|
||||
|
||||
|
||||
message File {
|
||||
string filename=1; // the proposed filename
|
||||
uint64 size=2; // the file size
|
||||
@ -195,4 +205,5 @@ message DbMessage {
|
||||
Location current_location = 8;
|
||||
bytes appdata = 9;
|
||||
Invitation invitation = 10;
|
||||
string from = 11; // source peer uid, used when storing group conversations with more than one peer
|
||||
}
|
||||
|
Reference in New Issue
Block a user