send expose version when sharing tcp ports

This commit is contained in:
Marcel Pociot
2021-06-18 13:13:14 +02:00
parent 520a5afb1f
commit c8171de2d2

View File

@@ -147,8 +147,9 @@ class Client
$promise = $deferred->promise();
$wsProtocol = $this->configuration->port() === 443 ? 'wss' : 'ws';
$exposeVersion = config('app.version');
connect($wsProtocol."://{$this->configuration->host()}:{$this->configuration->port()}/expose/control?authToken={$authToken}", [], [
connect($wsProtocol."://{$this->configuration->host()}:{$this->configuration->port()}/expose/control?authToken={$authToken}&version={$exposeVersion}", [], [
'X-Expose-Control' => 'enabled',
], $this->loop)
->then(function (WebSocket $clientConnection) use ($port, $deferred, $authToken) {