1 emit() -> sends event name along with its data. 2 on() -> receives data as per event name used. 3 broadcast() -> to send data to all except itself. 4 to() -> to send data to particular room. 5 join() -> to join a particular room.
1 emit() -> sends event name along with its data. 2 on() -> receives data as per event name used. 3 broadcast() -> to send data to all except itself. 4 to() -> to send data to particular room. 5 join() -> to join a particular room.