WebSocket$Typings extension
Properties
-
addEventListener
→ ({void Function<K$>(WebSocketEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
-
Overload accessor: $1, $2
no setter
-
binaryType
↔ BinaryType
-
Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
getter/setter pair
-
bufferedAmount
→ num
-
Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
no setter
-
close
↔ void Function([num?, String?])
-
getter/setter pair
-
closed
→ num
-
no setter
-
closing
→ num
-
no setter
-
connecting
→ num
-
no setter
-
extensions
→ String
-
Returns the extensions selected by the server, if any.
no setter
-
onclose
↔ dynamic Function(CloseEvent)?
-
MDN Reference
getter/setter pair
-
onerror
↔ dynamic Function(Event)?
-
MDN Reference
getter/setter pair
-
onmessage
↔ dynamic Function(MessageEvent)?
-
MDN Reference
getter/setter pair
-
onopen
↔ dynamic Function(Event)?
-
MDN Reference
getter/setter pair
-
open
→ num
-
no setter
-
protocol
→ String
-
Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation.
no setter
-
readyState
→ num
-
Returns the state of the WebSocket object's connection. It can have the values described below.
no setter
-
removeEventListener
→ ({void Function<K$>(WebSocketEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
-
Overload accessor: $1, $2
no setter
-
send
↔ void Function(Object)
-
getter/setter pair
-
url
→ String
-
Returns the URL that was used to establish the WebSocket connection.
no setter