# Class AdminServer

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:68

#####
Index

### Constructors

constructor

### Properties

_adminHttp
_app
_appLogLevel
_appWatcher
_ctrlCExit
_fullAppLogUrl
_fullyStarted
_hideMenuTimer
_io
_menu
_messageId
_opts
_passThru
_ports
_proxy
_saveWebpackReportData
_servers
_shutdown
_startDefer
_startTime
_statusLine
_updateProxyTimer
_wds
_webpackDevRelay

### Methods

_changeLogShowLevel
_quit
deferLogsOutput
getLogs
getServer
handleServerExit
handleUserInput
kill
logTime
makeMenu
passThruLineOutput
processCommand
saveLineOutput
sendMsg
showFullLogUrlMessage
showMenu
signal
start
startAppServer
startProxyServer
startServer
startWebpackDevServer
toggleFullLogUrlMessage
updateProxyServer
updateStatus
waitForAppServerStart
watchServer

## Constructors

### constructor

- new AdminServer(args, options): AdminServer

- #### Parameters

  - args: any
  - options: any

  #### Returns AdminServer

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:94

## Properties

### _adminHttp

_adminHttp: AdminHttp

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:92

### _app

_app: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:81

### _appLogLevel

_appLogLevel: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:84

### _appWatcher

_appWatcher: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:90

### _ctrlCExit

_ctrlCExit: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:87

### _fullAppLogUrl

_fullAppLogUrl: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:77

### _fullyStarted

_fullyStarted: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:86

### _hideMenuTimer

_hideMenuTimer: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:89

### _io

_io: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:75

### _menu

_menu: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:85

### _messageId

_messageId: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:71

### _opts

_opts: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:69

### _passThru

_passThru: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:70

### _ports

_ports: ProcessPorts

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:82

### _proxy

_proxy: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:80

### _saveWebpackReportData

_saveWebpackReportData: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:72

### _servers

_servers: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:74

### _shutdown

_shutdown: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:76

### _startDefer

_startDefer: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:91

### _startTime

_startTime: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:78

### _statusLine

_statusLine: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:88

### _updateProxyTimer

_updateProxyTimer: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:83

### _wds

_wds: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:79

### _webpackDevRelay

_webpackDevRelay: any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:73

## Methods

### _changeLogShowLevel

- _changeLogShowLevel(): void

- #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:291

### _quit

- _quit(): Promise<void>

- #### Returns Promise<void>

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:272

### deferLogsOutput

- deferLogsOutput(context, showFullLink?, delay?): void

- #### Parameters

  - context: any
  - showFullLink: boolean = true
  - delay: number = 250

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:581

### getLogs

- getLogs(name): string[]

- Get the logs of a server the admin manages. name could be:

  - "app" - app server
  - "wds" - webpack dev server

  #### Parameters

  - name: string

  #### Returns string[]

  logs in an array of strings

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:743

### getServer

- getServer(name): any

- #### Parameters

  - name: any

  #### Returns any

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:207

### handleServerExit

- handleServerExit(name): void

- #### Parameters

  - name: any

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:211

### handleUserInput

- handleUserInput(): Promise<void>

- #### Returns Promise<void>

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:341

### kill

- kill(name, sig): Promise<void>

- #### Parameters

  - name: any
  - sig: any

  #### Returns Promise<void>

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:241

### logTime

- logTime(msg): void

- #### Parameters

  - msg: any

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:152

### makeMenu

- makeMenu(): void

- #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:170

### passThruLineOutput

- passThruLineOutput(tag, input, output): Interface

- #### Parameters

  - tag: any
  - input: any
  - output: any

  #### Returns Interface

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:753

### processCommand

- processCommand(str): Promise<any>

- #### Parameters

  - str: any

  #### Returns Promise<any>

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:300

### saveLineOutput

- saveLineOutput(context): void

- #### Parameters

  - context: any

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:648

### sendMsg

- sendMsg(name, data): Promise<void>

- #### Parameters

  - name: any
  - data: any

  #### Returns Promise<void>

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:234

### showFullLogUrlMessage

- showFullLogUrlMessage(time, url): void

- #### Parameters

  - time: any
  - url: any

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:557

### showMenu

- showMenu(force?): void

- #### Parameters

  - force: any = undefined

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:194

### signal

- signal(name, sig): Promise<void>

- #### Parameters

  - name: any
  - sig: any

  #### Returns Promise<void>

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:227

### start

- start(): Promise<void>

- #### Returns Promise<void>

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:123

### startAppServer

- startAppServer(debug?): Promise<void>

- #### Parameters

  - debug: any = undefined

  #### Returns Promise<void>

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:690

### startProxyServer

- startProxyServer(debug?): Promise<void>

- #### Parameters

  - debug: any = undefined

  #### Returns Promise<void>

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:770

### startServer

- startServer(options): Promise<void>

- #### Parameters

  - options: any

  #### Returns Promise<void>

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:350

### startWebpackDevServer

- startWebpackDevServer(debug?): Promise<void>

- #### Parameters

  - debug: any = undefined

  #### Returns Promise<void>

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:447

### toggleFullLogUrlMessage

- toggleFullLogUrlMessage(serverName): void

- #### Parameters

  - serverName: any

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:544

### updateProxyServer

- updateProxyServer(newPorts, force?): void

- #### Parameters

  - newPorts: ProcessPorts
  - force: boolean = false

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:793

### updateStatus

- updateStatus(line?): void

- #### Parameters

  - line: any = undefined

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:158

### waitForAppServerStart

- waitForAppServerStart(info): Promise<unknown>

- #### Parameters

  - info: any

  #### Returns Promise<unknown>

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:809

### watchServer

- watchServer(name): void

- #### Parameters

  - name: any

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-server.ts:897