added passing of socket id from server to client