API reference / @chanx-js/client / core / createClient
Function: createClient()
ts
function createClient(options?): ChanxClient;Defined in: packages/client/src/core/client.ts:138
Create a client holding the connection defaults for a server.
For a channel carrying topics, connections are shared per resolved URL: calling connect twice with the same descriptor and params yields two independent typed views onto one socket. Plain channels get a socket each unless share is set.
Parameters
| Parameter | Type |
|---|---|
options | ClientOptions |