xtalk-client / createSession
Function: createSession()
createSession(
websocketURL,config?):Session
Defined in: session/create.ts:31
Creates a session client bound to the provided websocket endpoint.
The returned session coordinates authentication, runtime audio streaming, message state synchronization, and persisted conversation restoration.
Parameters
websocketURL
string | URL
Websocket endpoint used to establish the realtime session.
config?
SessionConfig = {}
Optional session configuration overrides.
Returns
A session controller for opening, closing, and interacting with X-Talk.