Create a control port - create a websocket object to listen on it and a message handler call back to deal with it.