WebSockets · AsyncAPI Specification
WebSocket Communication API
Version 1.0.0
AsyncAPI specification describing WebSocket communication patterns as defined by RFC 6455. WebSockets provide full-duplex communication channels over a single TCP connection, enabling real-time bidirectional data exchange between clients and servers.
View Spec
View on GitHub
Full DuplexNetworkingReal-Time CommunicationRFC 6455Web TechnologyAsyncAPIWebhooksEvents
Channels
connection
The primary WebSocket connection channel. After the opening handshake completes, this channel supports full-duplex message exchange using text or binary data frames.
Messages
TextMessage
Text Data Message
A UTF-8 encoded text message sent over the WebSocket connection
BinaryMessage
Binary Data Message
A binary message sent over the WebSocket connection
Ping
Ping Control Frame
A ping control frame used for keep-alive and connection health checks. May include up to 125 bytes of application data.
Pong
Pong Control Frame
A pong control frame sent in response to a ping. Contains the same application data as the ping it is responding to.
Close
Close Control Frame
A close control frame used to initiate the closing handshake. Contains an optional status code and reason string.
Servers
ws
production
WebSocket server endpoint
wss
secure
Secure WebSocket server endpoint (TLS)