| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | #ifndef NETDATA_WEBSOCKET_ECHO_H |
| 4 | #define NETDATA_WEBSOCKET_ECHO_H |
| 5 | |
| 6 | #include "websocket-internal.h" |
| 7 | |
| 8 | // WebSocket protocol handler callbacks for Echo protocol |
| 9 | void echo_on_connect(struct websocket_server_client *wsc); |
| 10 | void echo_on_message_callback(struct websocket_server_client *wsc, const char *message, size_t length, WEBSOCKET_OPCODE opcode); |
| 11 | void echo_on_close(struct websocket_server_client *wsc, WEBSOCKET_CLOSE_CODE code, const char *reason); |
| 12 | void echo_on_disconnect(struct websocket_server_client *wsc); |
| 13 | |
| 14 | // Initialize Echo protocol - called during WebSocket subsystem initialization |
| 15 | void websocket_echo_initialize(void); |
| 16 | |
| 17 | #endif // NETDATA_WEBSOCKET_ECHO_H |