Communication with Socket.io