@@ -156,7 +156,7 @@ export class WorkerOptions {
156
156
initializeProcessTimeout : number ;
157
157
permissions : WorkerPermissions ;
158
158
agentName : string ;
159
- workerType : ServerType ;
159
+ serverType : ServerType ;
160
160
maxRetry : number ;
161
161
wsURL : string ;
162
162
apiKey ?: string ;
@@ -180,7 +180,7 @@ export class WorkerOptions {
180
180
initializeProcessTimeout = 10 * 1000 ,
181
181
permissions = new WorkerPermissions ( ) ,
182
182
agentName = '' ,
183
- workerType = ServerType . JT_ROOM ,
183
+ serverType = ServerType . JT_ROOM ,
184
184
maxRetry = MAX_RECONNECT_ATTEMPTS ,
185
185
wsURL = 'ws://localhost:7880' ,
186
186
apiKey = undefined ,
@@ -208,7 +208,7 @@ export class WorkerOptions {
208
208
initializeProcessTimeout ?: number ;
209
209
permissions ?: WorkerPermissions ;
210
210
agentName ?: string ;
211
- workerType ?: ServerType ;
211
+ serverType ?: ServerType ;
212
212
maxRetry ?: number ;
213
213
wsURL ?: string ;
214
214
apiKey ?: string ;
@@ -233,7 +233,7 @@ export class WorkerOptions {
233
233
this . initializeProcessTimeout = initializeProcessTimeout ;
234
234
this . permissions = permissions ;
235
235
this . agentName = agentName ;
236
- this . workerType = workerType ;
236
+ this . serverType = serverType ;
237
237
this . maxRetry = maxRetry ;
238
238
this . wsURL = wsURL ;
239
239
this . apiKey = apiKey ;
@@ -345,7 +345,7 @@ export class AgentServer {
345
345
this . #opts = opts ;
346
346
this . #httpServer = new HTTPServer ( opts . host , opts . port , ( ) => ( {
347
347
agent_name : opts . agentName ,
348
- worker_type : ServerType [ opts . workerType ] ,
348
+ worker_type : ServerType [ opts . serverType ] ,
349
349
active_jobs : this . activeJobs . length ,
350
350
sdk_version : version ,
351
351
project_type : PROJECT_TYPE ,
@@ -615,7 +615,7 @@ export class AgentServer {
615
615
message : {
616
616
case : 'register' ,
617
617
value : {
618
- type : this . #opts. workerType ,
618
+ type : this . #opts. serverType ,
619
619
agentName : this . #opts. agentName ,
620
620
allowedPermissions : new ParticipantPermission ( {
621
621
canPublish : this . #opts. permissions . canPublish ,
0 commit comments