change the way of getting the socket id of client side