The D Programming Language's Unofficial Docs
beta
Dlang.org
Get Help
WebSocket.close
arsd
cgi
WebSocket
Closes the connection, sending a graceful teardown message to the other side.
class
WebSocket
void
close
(
int
code
= 0
,
string
reason
= null
)
See Also
foundational
arsd
cgi
WebSocket
functions
close
isMessageBuffered
onmessage
ping
readyState
send
waitForNextMessage
waitForNextMessageWouldBlock
manifest constants
CLOSED
CLOSING
CONNECTING
OPEN
structs
Config
variables
onbinarymessage
onclose
onerror
onopen
ontextmessage
Suggestion Box / Bug Report
Closes the connection, sending a graceful teardown message to the other side.