Hookups for websocket events and saving map via ws.