@@ -51,8 +51,8 @@ extern "C" {
51
51
*
52
52
* @param client WSclient_t * ptr to the client struct
53
53
* @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
56
56
*/
57
57
void WebSockets::clientDisconnect (WSclient_t * client, uint16_t code, char * reason, size_t reasonLen) {
58
58
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
73
73
*
74
74
* @param client WSclient_t * ptr to the client struct
75
75
* @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
78
78
* @param mask bool add dummy mask to the frame (needed for web browser)
79
79
* @param fin bool can be used to send data in more then one frame (set fin on the last frame)
80
80
* @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
92
92
return false ;
93
93
}
94
94
95
- DEBUG_WEBSOCKETS (" [WS][%d][sendFrame] ------- send massage frame -------\n " , client->num );
95
+ DEBUG_WEBSOCKETS (" [WS][%d][sendFrame] ------- send message frame -------\n " , client->num );
96
96
DEBUG_WEBSOCKETS (" [WS][%d][sendFrame] fin: %u opCode: %u mask: %u length: %u headerToPayload: %u\n " , client->num , fin, opcode, mask, length, headerToPayload);
97
97
98
98
if (opcode == WSop_text) {
0 commit comments