Hello!
I sending message to P2P topic via gRPC protocol
Sending message "hi {
id: "ab29f880-7ed6-47e8-a69b-09338d828f8b"
user_agent: "ChatsService/Java"
ver: "0.16.7"
device_id: "device-test"
lang: "EN"
platform: "java"
background: true
}
"
Got message "ctrl {
id: "ab29f880-7ed6-47e8-a69b-09338d828f8b"
code: 201
text: "created"
params {
key: "build"
value: "\"mongodb:v0.18.1\""
}
params {
key: "maxFileUploadSize"
value: "8388608"
}
params {
key: "maxMessageSize"
value: "262144"
}
params {
key: "maxSubscriberCount"
value: "128"
}
params {
key: "maxTagCount"
value: "16"
}
params {
key: "maxTagLength"
value: "96"
}
params {
key: "minTagLength"
value: "2"
}
params {
key: "ver"
value: "\"0.18\""
}
}
"
Sending message "login {
id: "ab29f880-7ed6-47e8-a69b-09338d828f8b"
scheme: "basic"
secret: "secret-chatbot"
}
"
Got message "ctrl {
id: "ab29f880-7ed6-47e8-a69b-09338d828f8b"
code: 200
text: "ok"
params {
key: "authlvl"
value: "\"root\""
}
params {
key: "expires"
value: "\"2022-04-20T12:42:43.456Z\""
}
params {
key: "token"
value: "\"zcUS7Cux2o3D/19iHgABAAEABMLBLUkTYtgOhKEfghGkoqdimkaForuw0xRv02OcTbk=\""
}
params {
key: "user"
value: "\"usrzcUS7Cux2o0\""
}
}
"
Sending message "sub {
id: "ab29f880-7ed6-47e8-a69b-09338d828f8b"
topic: "usrGsWLdSto3MU"
get_query {
what: "desc"
}
}
"
Got message "ctrl {
id: "ab29f880-7ed6-47e8-a69b-09338d828f8b"
topic: "usrGsWLdSto3MU"
code: 200
text: "ok"
}
"
Got message "meta {
id: "ab29f880-7ed6-47e8-a69b-09338d828f8b"
topic: "usrGsWLdSto3MU"
desc {
created_at: 1649241284600
updated_at: 1649241284600
touched_at: 1649248862434
acs {
want: "JRWPA"
given: "JRWPA"
}
seq_id: 10
read_id: 10
recv_id: 10
public: "{\"fn\":null,\"photo\":null,\"user_id\":\"ef819a73-a41e-4799-a531-5da34bcc40ad\"}"
}
}
"
Sending message "pub {
id: "ab29f880-7ed6-47e8-a69b-09338d828f8b"
topic: "usrGsWLdSto3MU"
head {
key: "mime"
value: "text/x-drafty"
}
content: "{\"txt\": Hello friend}"
}
"
Got message "ctrl {
id: "ab29f880-7ed6-47e8-a69b-09338d828f8b"
topic: "usrGsWLdSto3MU"
code: 202
text: "accepted"
}
"
Got message "data {
topic: "usrGsWLdSto3MU"
from_user_id: "usrzcUS7Cux2o0"
seq_id: 11
timestamp: 1649248963464
}
topic: "p2pzcUS7Cux2o0axYt1K2jcxQ"
"
But I get message content is null
I try sending
"pub {
id: "94e124e2-28ba-4b59-a907-93e29033c7df"
topic: "usrGsWLdSto3MU"
head {
key: "auto"
value: "true"
}
content: "Hello friend"
}
"
OR
"pub {
id: "f00210f9-9a91-458a-8f7e-1ead55719264"
topic: "usrGsWLdSto3MU"
content: "Hello friend"
}
"
But still the text of the message is not saved