# WebSocket Server Element

This exposes a local WebSocket server that allows communication between your web app running in a browser, and your desktop app.

You generally will only have one client (the browser tab) but if multiple tabs are open and requesting a connection, you'll need to handle multiple connections.\ <br>

## WebSocket Server Element Actions

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

## WebSocket Server Element Events

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

## WebSocket Server Element States

{% content-ref url="/pages/IRLu6n3G43VeuB5VceZW" %}
[States](/deskifier/deskifier-bubble.io-docs/websocket-server-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-server-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.
