> For the complete documentation index, see [llms.txt](https://documentation.sceenic.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.sceenic.co/watch-together-sdk/sscale-confluence-api-references/sscale-confluence-web-sdk-reference/sscale-confluence-sessionlisteners-websdk/wtsessionlisteners.onconnected-fn.md).

# WTSessionListeners.onConnected(fn)

`onConnected(fn)`

An event handler for when participant connects to Session

The *callback function* will be invoked after the connection to the session is established

* *The callback function* receives a parameter with the list of participants in the session
