@@ -51,8 +51,8 @@ extern "C" {
5151 *
5252 * @param client WSclient_t * ptr to the client struct
5353 * @param code uint16_t see RFC
54- * @param reason
55- * @param reasonLen
54+ * @param reason ptr to the disconnect reason message
55+ * @param reasonLen length of the disconnect reason message
5656 */
5757void WebSockets::clientDisconnect (WSclient_t * client, uint16_t code, char * reason, size_t reasonLen) {
5858 DEBUG_WEBSOCKETS (" [WS][%d][handleWebsocket] clientDisconnect code: %u\n " , client->num , code);
@@ -73,8 +73,8 @@ void WebSockets::clientDisconnect(WSclient_t * client, uint16_t code, char * rea
7373 *
7474 * @param client WSclient_t * ptr to the client struct
7575 * @param opcode WSopcode_t
76- * @param payload uint8_t *
77- * @param length size_t
76+ * @param payload uint8_t * ptr to the payload
77+ * @param length size_t length of the payload
7878 * @param mask bool add dummy mask to the frame (needed for web browser)
7979 * @param fin bool can be used to send data in more then one frame (set fin on the last frame)
8080 * @param headerToPayload bool set true if the payload has reserved 14 Byte at the beginning to dynamically add the Header (payload neet to be in RAM!)
@@ -92,7 +92,7 @@ bool WebSockets::sendFrame(WSclient_t * client, WSopcode_t opcode, uint8_t * pay
9292 return false ;
9393 }
9494
95- DEBUG_WEBSOCKETS (" [WS][%d][sendFrame] ------- send massage frame -------\n " , client->num );
95+ DEBUG_WEBSOCKETS (" [WS][%d][sendFrame] ------- send message frame -------\n " , client->num );
9696 DEBUG_WEBSOCKETS (" [WS][%d][sendFrame] fin: %u opCode: %u mask: %u length: %u headerToPayload: %u\n " , client->num , fin, opcode, mask, length, headerToPayload);
9797
9898 if (opcode == WSop_text) {
0 commit comments