--- url: "https://asyncapi.com/docs/reference/bindings/websockets" titulek: "websockets | AsyncAPI Initiative for event-driven APIs" h1: "websockets" popis: "WebSockets Bindings This document defines how to describe WebSockets-specific information on AsyncAPI. Version Current version is 0.1.0. Server Binding Object This object MUST NOT contain any" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 02:45:17" znaku: 2432 slov: 290 kodovani: "utf-8" sha256: "6509ebeb226447f5887727642a88c25111f066b4c737cac1c08ca0184a32a182" --- ##### On this page WebSockets Bindings Version Server Binding Object Channel Binding Object Operation Binding Object Message Binding Object # websockets Found an error? Have a suggestion?[Edit this page on GitHub](https://github.com/asyncapi/bindings/tree/master/websockets.md) # WebSockets Bindings This document defines how to describe WebSockets-specific information on AsyncAPI. ## Version Current version is `0.1.0`. ## Server Binding Object This object MUST NOT contain any properties. Its name is reserved for future use. ## Channel Binding Object When using WebSockets, the channel represents the connection. Unlike other protocols that support multiple virtual channels (topics, routing keys, etc.) per connection, WebSockets doesn't support virtual channels or, put it another way, there's only one channel and its characteristics are strongly related to the protocol used for the handshake, i.e., HTTP. ##### Fixed Fields | Field Name | Type | Description | | --- | --- | --- | | `method` | string | The HTTP method to use when establishing the connection. Its value MUST be either `GET` or `POST`. | | `query` | [Schema Object](https://github.com/asyncapi/spec/blob/master/spec/asyncapi.md#schemaObject) \| [Reference Object](referenceObject) | A Schema object containing the definitions for each query parameter. This schema MUST be of type `object` and have a `properties` key. | | `headers` | [Schema Object](https://github.com/asyncapi/spec/blob/master/spec/asyncapi.md#schemaObject) \| [Reference Object](referenceObject) | A Schema object containing the definitions of the HTTP headers to use when establishing the connection. This schema MUST be of type `object` and have a `properties` key. | | `bindingVersion` | string | The version of this binding. If omitted, "latest" MUST be assumed. | This object MUST contain only the properties defined above. ## Operation Binding Object This object MUST NOT contain any properties. Its name is reserved for future use. ## Message Binding Object This object MUST NOT contain any properties. Its name is reserved for future use. [Go Backstomp](/docs/reference/bindings/stomp) [Up NextMigrations - Overview](/docs/migration) Was this helpful? Help us improve the docs by sharing your feedback. [Submit Feedback](https://github.com/asyncapi/website/issues/new?template=docs-feedback.yml&title=Docs%20Feedback%3A%20%2Fdocs%2Freference%2Fbindings%2Fwebsockets&labels=%F0%9F%93%91%20docs) OR [Create Issue on GitHub](https://github.com/asyncapi/website/issues/new/choose)