You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 29, 2023. It is now read-only.
Just wondering how exactly the client will receive the event from the socket.io server. #44
Cheers for helping me earlier, I got it working now, seemed to be an issue with how I portfowarded of sorts. Not really an issue here just need clarification. I am quite new to arduino and this might seem obvious, but im having a bit of a hard time understanding how exactly.
Say my server is emitting the event.
io.emit("Event", ("Hello World!"))
Which one of the arguments should I use to get it to print out the event? From what I've seen you need the call the event before you declare it on the ESP32 side, this got my bewildered as a normal client on socket.io doesnt declare the event before it happens. In the documentation I saw these two referred:
Callback is the data of the event right? Which one of these two would you use for it to detect the event named "Event" and for it to print the "Hello World!" string, and how does the client know which event to respond to. On sockets.io when you program a client tradionally you simply just use the socket.io function
Cheers and thanks in advance, I'm sorry is this is a stupidly obvious question.
Activity
Repository owner locked and limited conversation to collaborators on Dec 20, 2022
Activity