moving where WebsocketProxy is initialised