Skip to content

Commit 1f0c8cf

Browse files
committed
Send client version to socket on server
1 parent 94528b7 commit 1f0c8cf

File tree

1 file changed

+2
-0
lines changed
  • packages/app/src/app/overmind/effects/live

1 file changed

+2
-0
lines changed

packages/app/src/app/overmind/effects/live/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
logBreadcrumb,
1212
} from '@codesandbox/common/lib/utils/analytics/sentry';
1313
import _debug from '@codesandbox/common/lib/utils/debug';
14+
import VERSION from '@codesandbox/common/lib/version';
1415
import { Blocker, blocker } from 'app/utils/blocker';
1516
import { camelizeKeys } from 'humps';
1617
import { SerializedTextOperation, TextOperation } from 'ot';
@@ -200,6 +201,7 @@ class Live {
200201
this.socket = new Socket(`${protocol}://${location.host}/socket`, {
201202
params: {
202203
guardian_token: this.provideJwtToken(),
204+
client_version: VERSION,
203205
},
204206
});
205207

0 commit comments

Comments
 (0)