Add websocket functions to map.