Skip to content

Commit ca8026e

Browse files
authoredNov 17, 2024··
Merge pull request #917 from omarcostahamido/patch-2
fix typos in WebSocketClientSocketIOack.ino
2 parents 8cdcf47 + daf04b0 commit ca8026e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎examples/esp32/WebSocketClientSocketIOack/WebSocketClientSocketIOack.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void socketIOEvent(socketIOmessageType_t type, uint8_t * payload, size_t length)
5454

5555
// Message Includes a ID for a ACK (callback)
5656
if(id) {
57-
// creat JSON message for Socket.IO (ack)
57+
// create JSON message for Socket.IO (ack)
5858
DynamicJsonDocument docOut(1024);
5959
JsonArray array = docOut.to<JsonArray>();
6060

@@ -130,19 +130,19 @@ void loop() {
130130
if(now - messageTimestamp > 2000) {
131131
messageTimestamp = now;
132132

133-
// creat JSON message for Socket.IO (event)
133+
// create JSON message for Socket.IO (event)
134134
DynamicJsonDocument doc(1024);
135135
JsonArray array = doc.to<JsonArray>();
136136

137-
// add evnet name
137+
// add event name
138138
// Hint: socket.on('event_name', ....
139139
array.add("event_name");
140140

141141
// add payload (parameters) for the event
142142
JsonObject param1 = array.createNestedObject();
143143
param1["now"] = (uint32_t) now;
144144

145-
// JSON to String (serializion)
145+
// JSON to String (serialization)
146146
String output;
147147
serializeJson(doc, output);
148148

0 commit comments

Comments
 (0)
Please sign in to comment.