# WebSocket Client Element

This element allows you to connect to your desktop app, from your apps normal web browser.

<figure><img src="/files/Mr4zgMH69rv9GHdzg1EC" alt=""><figcaption></figcaption></figure>

It's recommended to use the Autoconnect feature. Define which ports should be tried, and your server token, and the plugin will automatically connect to your desktop app.

## WebSocket Client Element Actions

{% content-ref url="/pages/0rBbeYf2yD9n9jHWKUq4" %}
[Actions](/deskifier/deskifier-bubble.io-docs/websocket-client-element/actions.md)
{% endcontent-ref %}

## WebSocket Client Element Events

{% content-ref url="/pages/gpg84AExEQB5fhKbrAGv" %}
[Events](/deskifier/deskifier-bubble.io-docs/websocket-client-element/events.md)
{% endcontent-ref %}

## WebSocket Client Element States

{% content-ref url="/pages/RKaRUmnoeN7eu4eWBgQJ" %}
[States](/deskifier/deskifier-bubble.io-docs/websocket-client-element/states.md)
{% endcontent-ref %}


---

# 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://deskifier.gitbook.io/deskifier/deskifier-bubble.io-docs/websocket-client-element.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.
