bootstrap socket.io for frontend