We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53ec7cb commit 102f297Copy full SHA for 102f297
1 file changed
pkg/da/jsonrpc/client.go
@@ -73,7 +73,7 @@ func NewClient(ctx context.Context, addr, token string, authHeaderName string) (
73
// Automatically converts http:// to ws:// (and https:// to wss://).
74
// Supports channel-based subscriptions (e.g. Subscribe).
75
// Note: WebSocket connections are eager — they connect at creation time
76
-// if it fails, we fallback to non websocket connection for the whole runtime process.
+// if the initial WS dial fails, falls back to HTTP polling for the entire session.
77
func NewWSClient(ctx context.Context, logger zerolog.Logger, addr, token string, authHeaderName string) (*Client, error) {
78
client, err := NewClient(ctx, httpToWS(addr), token, authHeaderName)
79
if err != nil {
0 commit comments