WebSocket Link
wsLink is a terminating link that's used when using tRPC's WebSockets Client and Subscriptions, which you can learn more about here.
Usage
To use wsLink, you need to pass it a TRPCWebSocketClient, which you can create with createWSClient:
client/index.tsts
client/index.tsts
wsLink Options
The wsLink function requires a TRPCWebSocketClient to be passed, which can be configured with the fields defined in WebSocketClientOptions:
ts
ts
Reference
You can check out the source code for this link on GitHub.