set connection url for socket.io
fix echo when calling