rpc_dart_socket 0.2.0
rpc_dart_socket: ^0.2.0 copied to clipboard
Unix domain socket and TCP transport for rpc_dart on the Dart VM. A caller connect and a server that owns its listening socket.
0.2.0 #
- Requires
rpc_dart7.0.0; see its changelog for the breaking changes this pulls in (every public typeRpc-prefixed, one client connection, the peer endpoint, channel close reasons,compressionEnabledon every server). connectRpcSocketabandons a connect on a cancellation token.- An oversized request keeps its status instead of failing the connection.
0.1.0 #
First release: rpc_dart over Unix domain sockets and TCP on the Dart VM.
connectRpcSocketopens anRpcSocketCallerTransport. Itsreadycompletes when the server's preface arrives, soRpcClientConnectionnever reports Online against a process that is not an rpc_dart server.RpcSocketServerowns its listening socket, restarts by rebinding, drains onstop(drainTimeout:), caps connections, and replaces a stale Unix socket file left by a crashed process (and nothing else).- Opens with core's frame preface: the client sends
rpcdartand the protocol version, the server answers with the same. A server builds no endpoint until the client's has arrived, withinprefaceTimeout. - Runs the transport conformance matrix over TCP.