apply websocket changes to mocksocket