# E0114

Source: https://crabtalk.ai/docs/errors/E0114

> A WebSocket connection or a call reached the wrong kind of tool: a connection was opened on a tool that is not a socket tool, or a socket tool was called.

A WebSocket connection or a call reached the wrong kind of tool: a connection was opened on a tool that is not a socket tool, or a socket tool was called.

Erroneous example:

```console
$ curl -X POST https://you.crabtalk.app/chat/tools/room
{"error":"room takes WebSocket connections at sockets/room, not calls","explain":"E0114"}
```

A tool marked `#[tool(socket)]` takes WebSocket connections at `{owner}.crabtalk.app/{service}/sockets/{tool}`, or `/sockets/{tool}` on a service's own host or custom domain, and no calls. Every other tool takes calls and no connections. Nothing ran.

To reach it:

- Check with `crab inspect <service>` which tools are marked `socket`.
- Open a WebSocket on a socket tool, and call any other tool.
