> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# NodeSocketAdapter

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

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

```ts
new NodeSocketAdapter(address, options?): NodeSocketClient
```

#### Parameters

WebSocket URL to connect to. See [`URL`](https://developer.mozilla.org/en-US/docs/Web/API/URL).

Underlying socket-library options.

#### Returns

`NodeSocketClient`

### Constructor

```ts
new NodeSocketAdapter(address, protocols?, options?): NodeSocketClient
```

#### Parameters

WebSocket URL to connect to. See [`URL`](https://developer.mozilla.org/en-US/docs/Web/API/URL).

Optional WebSocket sub-protocol(s) to request.

Underlying socket-library options.

#### Returns

`NodeSocketClient`