starpc 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,8 +46,10 @@ export async function* handleRpcStream(stream, getter) {
46
46
  // handle the stream
47
47
  const rpcStream = new RpcStream(packetSink, stream);
48
48
  server.handleDuplex(rpcStream);
49
- // return the outgoing packet sink
50
- return packetSink;
49
+ // process packets
50
+ for await (const packet of packetSink) {
51
+ yield* [packet];
52
+ }
51
53
  }
52
54
  // RpcStream implements the Stream on top of a RPC call.
53
55
  export class RpcStream {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starpc",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Streaming protobuf RPC service protocol over any two-way channel.",
5
5
  "license": "MIT",
6
6
  "author": {