# Events

### <mark style="color:purple;">Client Connected</mark>

Fires when a client has connected with the proper authentication.

***

### <mark style="color:purple;">Client Disconnected</mark>

Fires when a client disconnects.

***

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

Fires when a client sends a message.

***

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

Fires if the message couldn't be sent to the specified client.

***

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

Fires if the server sucessfully starts.

***

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

Fires if the server failed to start. Typically, this will be from trying to use a port that is already in use.


---

# 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/events.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.
