How to use sockets options/programs (screenshot attached)

Anybody can please explain or provide a tutorial link how to use them.

image

Have a look at these to get started:

Still there is no clarification on Rooms (Join, Leave, Get Joined, Get All). Additionally, how to send direct message to other person?