Change endpoint for socket.