Fix localhost in websocket connect