> ## Documentation Index
> Fetch the complete documentation index at: https://developer.plugchoice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# unknown-message

> The WebSocket doesn't know this type of message.

| Status | Title |
| - | - |
| `400` | This server does not know this type of message |

## What it means

You sent the [WebSocket](https://developer.plugchoice.com/v4/live-updates.md) a message whose `type` it doesn't know. It knows `authenticate`, `subscribe`, `unsubscribe` and `ping`. The connection stays open. Before `authenticated`, any message but `authenticate` closes the connection with `4001` instead.

A message type the server adds later gets this answer from a server that doesn't have it yet, so your code can tell what the server supports.

## What to do

Check the spelling of `type`, and send only the types the [WebSocket reference](https://developer.plugchoice.com/v4/api/websocket.md) lists.

## Example

```json theme={null}
{
  "type": "error",
  "id": "7",
  "data": {
    "type": "https://developer.plugchoice.com/api/errors/unknown-message",
    "title": "This server does not know this type of message",
    "status": 400,
    "code": "unknown-message",
    "detail": "It knows authenticate, subscribe, unsubscribe and ping."
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.