File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
cmp/compiler/src/translation-server Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ export class TranslationServer {
179179 ) ;
180180
181181 // Send initial connected event
182- this . sendToClient ( ws , createEvent ( "connected" ) ) ;
182+ this . sendToClient ( ws , createEvent ( "connected" , { serverUrl : this . url ! } ) ) ;
183183
184184 ws . on ( "close" , ( ) => {
185185 this . wsClients . delete ( ws ) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ interface BaseEvent {
1919export interface ConnectedEvent extends BaseEvent {
2020 type : "connected" ;
2121 serverUrl : string ;
22- version : string ;
2322}
2423
2524/**
@@ -144,7 +143,7 @@ type TranslationServerEventByType = {
144143 */
145144export function createEvent < T extends keyof TranslationServerEventByType > (
146145 type : T ,
147- event ? : Omit < TranslationServerEventByType [ T ] , "timestamp" | "type" > ,
146+ event : Omit < TranslationServerEventByType [ T ] , "timestamp" | "type" > ,
148147) : TranslationServerEventByType [ T ] {
149148 return {
150149 ...event ,
You can’t perform that action at this time.
0 commit comments