1 /* 2 * Copyright (c) 2024, Witekio 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /** 8 * @brief Setup websocket for echoing data back to client 9 * 10 * @param ws_socket Socket file descriptor associated with websocket 11 * @param user_data User data pointer 12 * 13 * @return 0 on success 14 */ 15 int ws_echo_setup(int ws_socket, void *user_data); 16 17 /** 18 * @brief Setup websocket for sending net statistics to client 19 * 20 * @param ws_socket Socket file descriptor associated with websocket 21 * @param user_data User data pointer 22 * 23 * @return 0 on success 24 */ 25 int ws_netstats_setup(int ws_socket, void *user_data); 26