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-vite
InternalOptions
WebSocket
WebSocketServer
Interface WebSocketServer
Hierarchy
Server
WebSocketServer
Index
Properties
clients
options
path
Methods
add
Listener
address
close
handle
Upgrade
off
on
once
remove
Listener
should
Handle
Properties
clients
clients
:
Set
<
WebSocket
>
options
options
:
WebSocket
.
ServerOptions
path
path
:
string
Methods
add
Listener
add
Listener
(
event
:
"connection"
, cb
:
(
client
:
WebSocket
, request
:
IncomingMessage
)
=>
void
)
:
WebSocket
.
WebSocketServer
add
Listener
(
event
:
"error"
, cb
:
(
err
:
Error
)
=>
void
)
:
WebSocket
.
WebSocketServer
add
Listener
(
event
:
"headers"
, cb
:
(
headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
)
:
WebSocket
.
WebSocketServer
add
Listener
(
event
:
"close"
|
"listening"
, cb
:
(
)
=>
void
)
:
WebSocket
.
WebSocketServer
add
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
WebSocket
.
WebSocketServer
Parameters
event:
"connection"
cb:
(
client
:
WebSocket
, request
:
IncomingMessage
)
=>
void
(
client
:
WebSocket
, request
:
IncomingMessage
)
:
void
Parameters
client:
WebSocket
request:
IncomingMessage
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
"error"
cb:
(
err
:
Error
)
=>
void
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
"headers"
cb:
(
headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
(
headers
:
string
[]
, request
:
IncomingMessage
)
:
void
Parameters
headers:
string
[]
request:
IncomingMessage
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
"close"
|
"listening"
cb:
(
)
=>
void
(
)
:
void
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
WebSocket
.
WebSocketServer
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
<
WebSocket
>
, socket
:
WebSocket
, request
:
IncomingMessage
)
=>
void
)
:
WebSocket
.
WebSocketServer
off
(
event
:
"error"
, cb
:
(
this
:
Server
<
WebSocket
>
, error
:
Error
)
=>
void
)
:
WebSocket
.
WebSocketServer
off
(
event
:
"headers"
, cb
:
(
this
:
Server
<
WebSocket
>
, headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
)
:
WebSocket
.
WebSocketServer
off
(
event
:
"close"
|
"listening"
, cb
:
(
this
:
Server
<
WebSocket
>
)
=>
void
)
:
WebSocket
.
WebSocketServer
off
(
event
:
string
|
symbol
, listener
:
(
this
:
Server
<
WebSocket
>
,
...
args
:
any
[]
)
=>
void
)
:
WebSocket
.
WebSocketServer
Parameters
event:
"connection"
cb:
(
this
:
Server
<
WebSocket
>
, socket
:
WebSocket
, request
:
IncomingMessage
)
=>
void
(
this
:
Server
<
WebSocket
>
, socket
:
WebSocket
, request
:
IncomingMessage
)
:
void
Parameters
this:
Server
<
WebSocket
>
socket:
WebSocket
request:
IncomingMessage
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
"error"
cb:
(
this
:
Server
<
WebSocket
>
, error
:
Error
)
=>
void
(
this
:
Server
<
WebSocket
>
, error
:
Error
)
:
void
Parameters
this:
Server
<
WebSocket
>
error:
Error
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
"headers"
cb:
(
this
:
Server
<
WebSocket
>
, headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
(
this
:
Server
<
WebSocket
>
, headers
:
string
[]
, request
:
IncomingMessage
)
:
void
Parameters
this:
Server
<
WebSocket
>
headers:
string
[]
request:
IncomingMessage
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
"close"
|
"listening"
cb:
(
this
:
Server
<
WebSocket
>
)
=>
void
(
this
:
Server
<
WebSocket
>
)
:
void
Parameters
this:
Server
<
WebSocket
>
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
string
|
symbol
listener:
(
this
:
Server
<
WebSocket
>
,
...
args
:
any
[]
)
=>
void
(
this
:
Server
<
WebSocket
>
,
...
args
:
any
[]
)
:
void
Parameters
this:
Server
<
WebSocket
>
Rest
...
args:
any
[]
Returns
void
Returns
WebSocket
.
WebSocketServer
on
on
(
event
:
"connection"
, cb
:
(
this
:
Server
<
WebSocket
>
, socket
:
WebSocket
, request
:
IncomingMessage
)
=>
void
)
:
WebSocket
.
WebSocketServer
on
(
event
:
"error"
, cb
:
(
this
:
Server
<
WebSocket
>
, error
:
Error
)
=>
void
)
:
WebSocket
.
WebSocketServer
on
(
event
:
"headers"
, cb
:
(
this
:
Server
<
WebSocket
>
, headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
)
:
WebSocket
.
WebSocketServer
on
(
event
:
"close"
|
"listening"
, cb
:
(
this
:
Server
<
WebSocket
>
)
=>
void
)
:
WebSocket
.
WebSocketServer
on
(
event
:
string
|
symbol
, listener
:
(
this
:
Server
<
WebSocket
>
,
...
args
:
any
[]
)
=>
void
)
:
WebSocket
.
WebSocketServer
Parameters
event:
"connection"
cb:
(
this
:
Server
<
WebSocket
>
, socket
:
WebSocket
, request
:
IncomingMessage
)
=>
void
(
this
:
Server
<
WebSocket
>
, socket
:
WebSocket
, request
:
IncomingMessage
)
:
void
Parameters
this:
Server
<
WebSocket
>
socket:
WebSocket
request:
IncomingMessage
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
"error"
cb:
(
this
:
Server
<
WebSocket
>
, error
:
Error
)
=>
void
(
this
:
Server
<
WebSocket
>
, error
:
Error
)
:
void
Parameters
this:
Server
<
WebSocket
>
error:
Error
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
"headers"
cb:
(
this
:
Server
<
WebSocket
>
, headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
(
this
:
Server
<
WebSocket
>
, headers
:
string
[]
, request
:
IncomingMessage
)
:
void
Parameters
this:
Server
<
WebSocket
>
headers:
string
[]
request:
IncomingMessage
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
"close"
|
"listening"
cb:
(
this
:
Server
<
WebSocket
>
)
=>
void
(
this
:
Server
<
WebSocket
>
)
:
void
Parameters
this:
Server
<
WebSocket
>
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
string
|
symbol
listener:
(
this
:
Server
<
WebSocket
>
,
...
args
:
any
[]
)
=>
void
(
this
:
Server
<
WebSocket
>
,
...
args
:
any
[]
)
:
void
Parameters
this:
Server
<
WebSocket
>
Rest
...
args:
any
[]
Returns
void
Returns
WebSocket
.
WebSocketServer
once
once
(
event
:
"connection"
, cb
:
(
this
:
Server
<
WebSocket
>
, socket
:
WebSocket
, request
:
IncomingMessage
)
=>
void
)
:
WebSocket
.
WebSocketServer
once
(
event
:
"error"
, cb
:
(
this
:
Server
<
WebSocket
>
, error
:
Error
)
=>
void
)
:
WebSocket
.
WebSocketServer
once
(
event
:
"headers"
, cb
:
(
this
:
Server
<
WebSocket
>
, headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
)
:
WebSocket
.
WebSocketServer
once
(
event
:
"close"
|
"listening"
, cb
:
(
this
:
Server
<
WebSocket
>
)
=>
void
)
:
WebSocket
.
WebSocketServer
once
(
event
:
string
|
symbol
, listener
:
(
this
:
Server
<
WebSocket
>
,
...
args
:
any
[]
)
=>
void
)
:
WebSocket
.
WebSocketServer
Parameters
event:
"connection"
cb:
(
this
:
Server
<
WebSocket
>
, socket
:
WebSocket
, request
:
IncomingMessage
)
=>
void
(
this
:
Server
<
WebSocket
>
, socket
:
WebSocket
, request
:
IncomingMessage
)
:
void
Parameters
this:
Server
<
WebSocket
>
socket:
WebSocket
request:
IncomingMessage
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
"error"
cb:
(
this
:
Server
<
WebSocket
>
, error
:
Error
)
=>
void
(
this
:
Server
<
WebSocket
>
, error
:
Error
)
:
void
Parameters
this:
Server
<
WebSocket
>
error:
Error
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
"headers"
cb:
(
this
:
Server
<
WebSocket
>
, headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
(
this
:
Server
<
WebSocket
>
, headers
:
string
[]
, request
:
IncomingMessage
)
:
void
Parameters
this:
Server
<
WebSocket
>
headers:
string
[]
request:
IncomingMessage
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
"close"
|
"listening"
cb:
(
this
:
Server
<
WebSocket
>
)
=>
void
(
this
:
Server
<
WebSocket
>
)
:
void
Parameters
this:
Server
<
WebSocket
>
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
string
|
symbol
listener:
(
this
:
Server
<
WebSocket
>
,
...
args
:
any
[]
)
=>
void
(
this
:
Server
<
WebSocket
>
,
...
args
:
any
[]
)
:
void
Parameters
this:
Server
<
WebSocket
>
Rest
...
args:
any
[]
Returns
void
Returns
WebSocket
.
WebSocketServer
remove
Listener
remove
Listener
(
event
:
"connection"
, cb
:
(
client
:
WebSocket
)
=>
void
)
:
WebSocket
.
WebSocketServer
remove
Listener
(
event
:
"error"
, cb
:
(
err
:
Error
)
=>
void
)
:
WebSocket
.
WebSocketServer
remove
Listener
(
event
:
"headers"
, cb
:
(
headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
)
:
WebSocket
.
WebSocketServer
remove
Listener
(
event
:
"close"
|
"listening"
, cb
:
(
)
=>
void
)
:
WebSocket
.
WebSocketServer
remove
Listener
(
event
:
string
|
symbol
, listener
:
(
...
args
:
any
[]
)
=>
void
)
:
WebSocket
.
WebSocketServer
Parameters
event:
"connection"
cb:
(
client
:
WebSocket
)
=>
void
(
client
:
WebSocket
)
:
void
Parameters
client:
WebSocket
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
"error"
cb:
(
err
:
Error
)
=>
void
(
err
:
Error
)
:
void
Parameters
err:
Error
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
"headers"
cb:
(
headers
:
string
[]
, request
:
IncomingMessage
)
=>
void
(
headers
:
string
[]
, request
:
IncomingMessage
)
:
void
Parameters
headers:
string
[]
request:
IncomingMessage
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
"close"
|
"listening"
cb:
(
)
=>
void
(
)
:
void
Returns
void
Returns
WebSocket
.
WebSocketServer
Parameters
event:
string
|
symbol
listener:
(
...
args
:
any
[]
)
=>
void
(
...
args
:
any
[]
)
:
void
Parameters
Rest
...
args:
any
[]
Returns
void
Returns
WebSocket
.
WebSocketServer
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