# Actions

### <mark style="color:purple;">Start Server</mark>

Starts a web socket server that allows browser clients to connect to your desktop app.

{% hint style="danger" %}
Security Warning: \
\
When enabled, the WebSocket server opens a port that **any reachable webpage or application can connect to** (including browsers, local apps, and possibly other devices on your network).

**All incoming requests should be treated as untrusted.** You should validate and authorize messages before using them.
{% endhint %}

***

### <mark style="color:purple;">Stop Server</mark>

Stops the server and disconnects all clients.

***

### <mark style="color:purple;">Send Message</mark>

Sends a message to a specified client.

***

### <mark style="color:purple;">Broadcast Message</mark>

Sends a message to all connected clients.&#x20;

{% hint style="info" %}
This will not return an error if one of the clients aren't able to receive the message. If you want to ensure deliverability, use the Send Message method.
{% 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://deskifier.gitbook.io/deskifier/deskifier-bubble.io-docs/websocket-server-element/actions.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.
