Dart
dart:html
WebSocket
close method
close
description
close
method
Null safety
void
close
(
[
int
?
code
,
String
?
reason
]
)
Implementation
void close([int? code, String? reason]) native;
Dart
dart:html
WebSocket
close method
WebSocket class
Constructors
WebSocket
Properties
binaryType
bufferedAmount
extensions
hashCode
on
onClose
onError
onMessage
onOpen
protocol
readyState
runtimeType
url
Methods
addEventListener
close
dispatchEvent
noSuchMethod
removeEventListener
send
sendBlob
sendByteBuffer
sendString
sendTypedData
toString
Operators
operator ==
Static properties
supported
Constants
CLOSED
closeEvent
CLOSING
CONNECTING
errorEvent
messageEvent
OPEN
openEvent