A module with streaming support exists
The new k6/experimental/grpc module extends k6/net/grpc to support gRPC streaming. We recommend using the new module.
Client is a gRPC client that can interact with a gRPC server. Only unary RPCs are currently supported in this module.
Method | Description |
---|---|
Client.load(importPaths, ...protoFiles) | Loads and parses the given protocol buffer definitions to be made available for RPC requests. |
Client.loadProtoset(protosetPath) | Loads and parses the given protoset file to be made available for RPC requests. |
Client.connect(address [,params]) | Opens a connection to the given gRPC server. |
Client.invoke(url, request [,params]) | Makes an unary RPC for the given service/method and returns a Response. |
Client.close() | Close the connection to the gRPC service. |