# WT Session

Session is the real-time communication session between two or more browsers or devices using the WT SDK. During a session, audio, video, and data are transmitted between the participants.

* [connect(streamingToken, participantName, userConstraints, metadata)](/watch-together-sdk/sscale-confluence-api-references/sscale-confluence-web-sdk-reference/wt-session/wtsession.connect-stoken-pname-uc-m.md)
* [connectAsAViewer(streamingToken, participantName)](/watch-together-sdk/sscale-confluence-api-references/sscale-confluence-web-sdk-reference/wt-session/wtsession.connectasaviewer-stoken-pname.md)
* [WTSession.connectWithSharingScreen(sToken, pName)](/watch-together-sdk/sscale-confluence-api-references/sscale-confluence-web-sdk-reference/wt-session/wtsession.connectwithsharingscreen-stoken-pname.md)
* [WTSession.disconnect()](/watch-together-sdk/sscale-confluence-api-references/sscale-confluence-web-sdk-reference/wt-session/wtsession.disconnect.md)
* [WTSession.enableStats()](/watch-together-sdk/sscale-confluence-api-references/sscale-confluence-web-sdk-reference/wt-session/wtsession.enablestats.md)
* [WTSession.sendMessage(msg)](/watch-together-sdk/sscale-confluence-api-references/sscale-confluence-web-sdk-reference/wt-session/wtsession.sendmessage-msg.md)
* [WTSession.sendPlayerData(time)](/watch-together-sdk/sscale-confluence-api-references/sscale-confluence-web-sdk-reference/wt-session/wtsession.sendplayerdata-time.md)
* [async WTSession.getSessionState()](/watch-together-sdk/sscale-confluence-api-references/sscale-confluence-web-sdk-reference/wt-session/async-wtsession.getsessionstate.md)

{% hint style="warning" %}
Known issue:

When applying H264 codec in Safari v15.x feature of enable/disable camera can cause a crash. To prevent this kind of problem instead of enable/disable video track .stop() method applied. In such cases light indicator of camera stay enabled, but video stream is stopped.&#x20;
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.sceenic.co/watch-together-sdk/sscale-confluence-api-references/sscale-confluence-web-sdk-reference/wt-session.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
