Websocket connect to another server?

I found that the websocket in frontend connects to a default static wsPath in the constructor of WebSocketConnectionProvider:
const url = this.createWebSocketUrl(WebSocketChannel.wsPath) with static wsPath = '/services'.

Can i change the wsPath to another server?

For now, i have extended WebSocketConnectionProvider and overwrited its method createWebSocketUrl such as below:

Using this provider, i can connect the websocket to my server, but when sending message, the Theia backend can recieve the message too, i really don’t know why.