Added client side Socket.io support