NodeSocketAdapter

View as MarkdownOpen in Claude

There’s a difference in searchParams between URL from lib and URL from url (node) that makes using the same not possible for us.

Constructors

Constructor

1new NodeSocketAdapter(address, options?): NodeSocketClient

Parameters

address
string | URLRequired

WebSocket URL to connect to. See URL.

options
unknown

Underlying socket-library options.

Returns

NodeSocketClient

Constructor

1new NodeSocketAdapter(address, protocols?, options?): NodeSocketClient

Parameters

address
string | URLRequired

WebSocket URL to connect to. See URL.

protocols
string | string[]

Optional WebSocket sub-protocol(s) to request.

options
unknown

Underlying socket-library options.

Returns

NodeSocketClient