WIP websocket. Added logic for use map with users