---
title: "Get websocket connection"
method: GET
path: "/websocket"
tags: ["websocket"]
---

# Get websocket connection

`GET /websocket`

Establishes a new websocket connection between a client and the API.

## Other responses

- `101` — Switching protocols
- `400` — Bad request
- `401` — Request unauthorized
- `406` — There already is an active websocket connection.
- `500` — Internal server error
- `5XX` — Unexpected/-handled error

---

[API](https://skmtc.dev/discord/apis/copped-aio-database-api.md) · [All operations](https://skmtc.dev/discord/apis/copped-aio-database-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/discord/copped-aio-database-api/revisions/b60a9661e94b/schema)
