added socketio for the client side