Unable to send RPC request
Holofox opened this issue · comments
Hello again! I noticed that RPC requests are not sent. The problem occurs when deserializing and serializing data. Shouldn't we use the type Uint8List instead of List<int>
?
To clarify the situation, now the centrifuge client on Dart allows you to send RPC requests in binary form (List<int>
).
Before bringing to this form, I convert the bodies of an RPC request through the .writeToBuffer() or
utf8.encode(jsonEncode(request.toProto3Json());
method, it is worth noting that the binary result of these operations is different;
What should I do to correctly send a request? A little later I will try to supplement the information about the problem I am facing.
@Holofox added sending RPC to console example, see https://github.com/centrifugal/centrifuge-dart/blob/master/example/console/simple.dart#L68