Joel.Watson92@gmail.com | LinkedIn: /in/joel3rbear | Twitter: @Joel3rBear
When it is said that web sockets are bidirectional, it means that they can communicate to the server from the socket, as well as to the socket from the server. This is useful when you want to broadcast something to all of the clients from the server.
Socket.io uses both TCP and HTTP. TCP is used for the data transfering while the HTTP is used to keep the connection alive and authenticated.
When a client emits an event in socket.io, the connected server will respond to the event. When the server emits an event, all the connected sockets will respond to it;