change web app to use websockets for sending messages too