Supported communication modes in OneBot 11
masterOneBot 11 supports four distinct communication modes for API calls and event delivery. All data transmitted across these modes is encoded using UTF-8.
1. HTTP (API Calling)
OneBot acts as an HTTP Server. You call its APIs by sending HTTP requests to the OneBot service.
2. HTTP POST (Event Pushing)
OneBot acts as an HTTP Client. It pushes events to a URL configured by the user and processes the responses returned by that URL. This mode is specifically used for event reporting.
3. Forward WebSocket (API Calling & Event Pushing)
OneBot acts as a WebSocket Server. It accepts incoming WebSocket connections from clients, providing both API calling capabilities and event push services over the connection.
4. Reverse WebSocket (API Calling & Event Pushing)
OneBot acts as a WebSocket Client. It actively initiates a connection to a URL configured by the user, providing both API calling and event push services through that established connection.