[DiscordArchive] ```rpc OnFriendAdded (.bgs.protocol.friends.v1.FriendNotification) returns (.bgs.protocol.NO_RESPONS
[DiscordArchive] ```rpc OnFriendAdded (.bgs.protocol.friends.v1.FriendNotification) returns (.bgs.protocol.NO_RESPONS
Archived author: Gunsablazin • Posted: 2021-03-02T19:14:57.447000+00:00
Original source
```rpc OnFriendAdded (.bgs.protocol.friends.v1.FriendNotification) returns (.bgs.protocol.NO_RESPONSE) {
option (method_options).id = 1;
}```
isnt that defining the rpc calls you would use in grpc?
Archived author: Fabian • Posted: 2021-03-02T19:29:00.847000+00:00
Original source
That’s how you define protobuf messages
Archived author: Fabian • Posted: 2021-03-02T19:29:26.658000+00:00
Original source
You don’t have to use grpc for protobuf
Archived author: Gunsablazin • Posted: 2021-03-02T19:30:09.265000+00:00
Original source
```message FriendNotification {
required .bgs.protocol.friends.v1.Friend target = 1;
optional .bgs.protocol.EntityId account_id = 5;
optional .bgs.protocol.ObjectAddress forward = 6 [deprecated = true];
}```
Archived author: Gunsablazin • Posted: 2021-03-02T19:30:33.908000+00:00
Original source
a message looks like that, but this is a rpc call which takes a FriendNotification and expect no response
Archived author: Gunsablazin • Posted: 2021-03-02T19:30:49.926000+00:00
Original source
hence it starting with ``rpc``
Archived author: Fabian • Posted: 2021-03-02T19:31:02.584000+00:00
Original source
Both work with raw protobuf as far as i remember
Archived author: Fabian • Posted: 2021-03-02T19:31:09.303000+00:00
Original source
Even without grpc
Archived author: Fabian • Posted: 2021-03-02T19:31:43.689000+00:00
Original source
I generate rpc calls too but that in a protobuf class but i don’t use grpc
Archived author: Fabian • Posted: 2021-03-02T19:32:08.464000+00:00
Original source
Just raw tcp for sending/receiving