Search
Preparing search index...
The search index is not available
Electron Forge
Options
All
Public
Public/Protected
All
Inherited
Menu
Electron Forge
@electron-forge/plugin-webpack
InternalOptions
Server
Class Server
Hierarchy
EventEmitter
Server
Index
Constructors
constructor
Properties
clients
options
path
Methods
add
Listener
address
close
handle
Upgrade
off
on
once
remove
Listener
should
Handle
Constructors
constructor
new
Server
(
options
?:
ServerOptions
, callback
?:
(
)
=>
void
)
:
Server
Parameters
Optional
options:
ServerOptions
Optional
callback:
(
)
=>
void
(
)
:
void
Returns
void
Returns
Server
Properties
clients
clients
:
Set
<
WebSocket
>
options
options
:
ServerOptions
path
path
:
string
Methods
add
Listener
add
Listener
(
event
:
"connection"
, cb
:
(
client
:
WebSocket
, request
:
IncomingMessage
)
=>
void
)
:
Server
add
Listener
(
event
:
"error"
, cb
:
(
err
:
Error
)
=>
void
)
:
Server
add
Listener
(
event
:
"headers"
, cb
:
(
headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
)
:
Server
add
Listener
(
event
:
"close"
|
"listening"
, cb
:
(
)
=>
void
)
:
Server
add
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
Server
Parameters
event:
"connection"
cb:
(
client
:
WebSocket
, request
:
IncomingMessage
)
=>
void
(
client
:
WebSocket
, request
:
IncomingMessage
)
:
void
Parameters
client:
WebSocket
request:
IncomingMessage
Returns
void
Returns
Server
Parameters
event:
"error"
cb:
(
err
:
Error
)
=>
void
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
Server
Parameters
event:
"headers"
cb:
(
headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
(
headers
:
string
[]
, request
:
IncomingMessage
)
:
void
Parameters
headers:
string
[]
request:
IncomingMessage
Returns
void
Returns
Server
Parameters
event:
"close"
|
"listening"
cb:
(
)
=>
void
(
)
:
void
Returns
void
Returns
Server
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
Server
address
address
(
)
:
string
|
WebSocket
.
AddressInfo
Returns
string
|
WebSocket
.
AddressInfo
close
close
(
cb
?:
(
err
?:
Error
)
=>
void
)
:
void
Parameters
Optional
cb:
(
err
?:
Error
)
=>
void
(
err
?:
Error
)
:
void
Parameters
Optional
err:
Error
Returns
void
Returns
void
handle
Upgrade
handle
Upgrade
(
request
:
IncomingMessage
, socket
:
Duplex
, upgradeHead
:
Buffer
, callback
:
(
client
:
WebSocket
, request
:
IncomingMessage
)
=>
void
)
:
void
Parameters
request:
IncomingMessage
socket:
Duplex
upgradeHead:
Buffer
callback:
(
client
:
WebSocket
, request
:
IncomingMessage
)
=>
void
(
client
:
WebSocket
, request
:
IncomingMessage
)
:
void
Parameters
client:
WebSocket
request:
IncomingMessage
Returns
void
Returns
void
off
off
(
event
:
"connection"
, cb
:
(
this
:
Server
, socket
:
WebSocket
, request
:
IncomingMessage
)
=>
void
)
:
Server
off
(
event
:
"error"
, cb
:
(
this
:
Server
, error
:
Error
)
=>
void
)
:
Server
off
(
event
:
"headers"
, cb
:
(
this
:
Server
, headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
)
:
Server
off
(
event
:
"close"
|
"listening"
, cb
:
(
this
:
Server
)
=>
void
)
:
Server
off
(
event
:
string
|
symbol
, listener
:
(
this
:
Server
,
...
args
:
any
[]
)
=>
void
)
:
Server
Parameters
event:
"connection"
cb:
(
this
:
Server
, socket
:
WebSocket
, request
:
IncomingMessage
)
=>
void
(
this
:
Server
, socket
:
WebSocket
, request
:
IncomingMessage
)
:
void
Parameters
this:
Server
socket:
WebSocket
request:
IncomingMessage
Returns
void
Returns
Server
Parameters
event:
"error"
cb:
(
this
:
Server
, error
:
Error
)
=>
void
(
this
:
Server
, error
:
Error
)
:
void
Parameters
this:
Server
error:
Error
Returns
void
Returns
Server
Parameters
event:
"headers"
cb:
(
this
:
Server
, headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
(
this
:
Server
, headers
:
string
[]
, request
:
IncomingMessage
)
:
void
Parameters
this:
Server
headers:
string
[]
request:
IncomingMessage
Returns
void
Returns
Server
Parameters
event:
"close"
|
"listening"
cb:
(
this
:
Server
)
=>
void
(
this
:
Server
)
:
void
Parameters
this:
Server
Returns
void
Returns
Server
Parameters
event:
string
|
symbol
listener:
(
this
:
Server
,
...
args
:
any
[]
)
=>
void
(
this
:
Server
,
...
args
:
any
[]
)
:
void
Parameters
this:
Server
Rest
...
args:
any
[]
Returns
void
Returns
Server
on
on
(
event
:
"connection"
, cb
:
(
this
:
Server
, socket
:
WebSocket
, request
:
IncomingMessage
)
=>
void
)
:
Server
on
(
event
:
"error"
, cb
:
(
this
:
Server
, error
:
Error
)
=>
void
)
:
Server
on
(
event
:
"headers"
, cb
:
(
this
:
Server
, headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
)
:
Server
on
(
event
:
"close"
|
"listening"
, cb
:
(
this
:
Server
)
=>
void
)
:
Server
on
(
event
:
string
|
symbol
, listener
:
(
this
:
Server
,
...
args
:
any
[]
)
=>
void
)
:
Server
Parameters
event:
"connection"
cb:
(
this
:
Server
, socket
:
WebSocket
, request
:
IncomingMessage
)
=>
void
(
this
:
Server
, socket
:
WebSocket
, request
:
IncomingMessage
)
:
void
Parameters
this:
Server
socket:
WebSocket
request:
IncomingMessage
Returns
void
Returns
Server
Parameters
event:
"error"
cb:
(
this
:
Server
, error
:
Error
)
=>
void
(
this
:
Server
, error
:
Error
)
:
void
Parameters
this:
Server
error:
Error
Returns
void
Returns
Server
Parameters
event:
"headers"
cb:
(
this
:
Server
, headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
(
this
:
Server
, headers
:
string
[]
, request
:
IncomingMessage
)
:
void
Parameters
this:
Server
headers:
string
[]
request:
IncomingMessage
Returns
void
Returns
Server
Parameters
event:
"close"
|
"listening"
cb:
(
this
:
Server
)
=>
void
(
this
:
Server
)
:
void
Parameters
this:
Server
Returns
void
Returns
Server
Parameters
event:
string
|
symbol
listener:
(
this
:
Server
,
...
args
:
any
[]
)
=>
void
(
this
:
Server
,
...
args
:
any
[]
)
:
void
Parameters
this:
Server
Rest
...
args:
any
[]
Returns
void
Returns
Server
once
once
(
event
:
"connection"
, cb
:
(
this
:
Server
, socket
:
WebSocket
, request
:
IncomingMessage
)
=>
void
)
:
Server
once
(
event
:
"error"
, cb
:
(
this
:
Server
, error
:
Error
)
=>
void
)
:
Server
once
(
event
:
"headers"
, cb
:
(
this
:
Server
, headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
)
:
Server
once
(
event
:
"close"
|
"listening"
, cb
:
(
this
:
Server
)
=>
void
)
:
Server
once
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
Server
Parameters
event:
"connection"
cb:
(
this
:
Server
, socket
:
WebSocket
, request
:
IncomingMessage
)
=>
void
(
this
:
Server
, socket
:
WebSocket
, request
:
IncomingMessage
)
:
void
Parameters
this:
Server
socket:
WebSocket
request:
IncomingMessage
Returns
void
Returns
Server
Parameters
event:
"error"
cb:
(
this
:
Server
, error
:
Error
)
=>
void
(
this
:
Server
, error
:
Error
)
:
void
Parameters
this:
Server
error:
Error
Returns
void
Returns
Server
Parameters
event:
"headers"
cb:
(
this
:
Server
, headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
(
this
:
Server
, headers
:
string
[]
, request
:
IncomingMessage
)
:
void
Parameters
this:
Server
headers:
string
[]
request:
IncomingMessage
Returns
void
Returns
Server
Parameters
event:
"close"
|
"listening"
cb:
(
this
:
Server
)
=>
void
(
this
:
Server
)
:
void
Parameters
this:
Server
Returns
void
Returns
Server
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
Server
remove
Listener
remove
Listener
(
event
:
"connection"
, cb
:
(
client
:
WebSocket
)
=>
void
)
:
Server
remove
Listener
(
event
:
"error"
, cb
:
(
err
:
Error
)
=>
void
)
:
Server
remove
Listener
(
event
:
"headers"
, cb
:
(
headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
)
:
Server
remove
Listener
(
event
:
"close"
|
"listening"
, cb
:
(
)
=>
void
)
:
Server
remove
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
Server
Parameters
event:
"connection"
cb:
(
client
:
WebSocket
)
=>
void
(
client
:
WebSocket
)
:
void
Parameters
client:
WebSocket
Returns
void
Returns
Server
Parameters
event:
"error"
cb:
(
err
:
Error
)
=>
void
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
Server
Parameters
event:
"headers"
cb:
(
headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
(
headers
:
string
[]
, request
:
IncomingMessage
)
:
void
Parameters
headers:
string
[]
request:
IncomingMessage
Returns
void
Returns
Server
Parameters
event:
"close"
|
"listening"
cb:
(
)
=>
void
(
)
:
void
Returns
void
Returns
Server
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
Server
should
Handle
should
Handle
(
request
:
IncomingMessage
)
:
boolean
|
Promise
<
boolean
>
Parameters
request:
IncomingMessage
Returns
boolean
|
Promise
<
boolean
>
All Modules
Makers
maker-appx
maker-deb
maker-dmg
maker-flatpak
maker-pkg
maker-rpm
maker-snap
maker-squirrel
maker-wix
maker-zip
Plugins
plugin-auto-unpack-natives
plugin-base
plugin-electronegativity
plugin-fuses
plugin-local-electron
plugin-vite
plugin-webpack
Publishers
publisher-base
publisher-bitbucket
publisher-electron-release-server
publisher-gcs
publisher-github
publisher-nucleus
publisher-s3
publisher-snapcraft
publisher-static
Templates
template-base
template-vite
template-vite-typescript
template-webpack
template-webpack-typescript
Utils & Internal Helpers
core
core-utils
maker-base
shared-types
test-utils
tracer
web-multi-logger