chat location detection
websocket implementation