I want to make a event on Socket.io with my custom payload. How can I do it

Hello, Guys
I want to bind a event to socket.io I don’t have enough knowledge about socker.io. So Please guide me how can I do it. frappe already have socket.io I want to use it with add event.

Thnaks

Perhaps revant_one’s intro code on the wiki may offer some insight Home · frappe/frappe Wiki · GitHub