From 6a9d509bce0515ae379c8675e28aa018be8d1e1b Mon Sep 17 00:00:00 2001 From: futreall <86553580+futreall@users.noreply.github.com> Date: Wed, 22 Oct 2025 10:52:01 +0300 Subject: [PATCH] cleanup: remove deprecated DialWebsocketWithDialer function Removed deprecated DialWebsocketWithDialer function. --- rpc/websocket.go | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/rpc/websocket.go b/rpc/websocket.go index 543ff617ba..ed5f84c967 100644 --- a/rpc/websocket.go +++ b/rpc/websocket.go @@ -185,25 +185,6 @@ func parseOriginURL(origin string) (string, string, string, error) { return scheme, hostname, port, nil } -// DialWebsocketWithDialer creates a new RPC client using WebSocket. -// -// The context is used for the initial connection establishment. It does not -// affect subsequent interactions with the client. -// -// Deprecated: use DialOptions and the WithWebsocketDialer option. -func DialWebsocketWithDialer(ctx context.Context, endpoint, origin string, dialer websocket.Dialer) (*Client, error) { - cfg := new(clientConfig) - cfg.wsDialer = &dialer - if origin != "" { - cfg.setHeader("origin", origin) - } - connect, err := newClientTransportWS(endpoint, cfg) - if err != nil { - return nil, err - } - return newClient(ctx, cfg, connect) -} - // DialWebsocket creates a new RPC client that communicates with a JSON-RPC server // that is listening on the given endpoint. //