WebSocket$Typings extension
- on
Properties
-
addEventListener
→ ({void Function<
K$>(WebSocketEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on WebSocket, provided by the WebSocket$Typings extension
Overload accessor: $1, $2no setter - binaryType ↔ BinaryType
-
Available on WebSocket, provided by the WebSocket$Typings extension
Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:getter/setter pair - bufferedAmount → num
-
Available on WebSocket, provided by the WebSocket$Typings extension
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?])
-
Available on WebSocket, provided by the WebSocket$Typings extension
getter/setter pair - closed → num
-
Available on WebSocket, provided by the WebSocket$Typings extension
no setter - closing → num
-
Available on WebSocket, provided by the WebSocket$Typings extension
no setter - connecting → num
-
Available on WebSocket, provided by the WebSocket$Typings extension
no setter - extensions → String
-
Available on WebSocket, provided by the WebSocket$Typings extension
Returns the extensions selected by the server, if any.no setter - onclose ↔ dynamic Function(CloseEvent)?
-
Available on WebSocket, provided by the WebSocket$Typings extension
MDN Referencegetter/setter pair - onerror ↔ dynamic Function(Event)?
-
Available on WebSocket, provided by the WebSocket$Typings extension
MDN Referencegetter/setter pair - onmessage ↔ dynamic Function(MessageEvent)?
-
Available on WebSocket, provided by the WebSocket$Typings extension
MDN Referencegetter/setter pair - onopen ↔ dynamic Function(Event)?
-
Available on WebSocket, provided by the WebSocket$Typings extension
MDN Referencegetter/setter pair - open → num
-
Available on WebSocket, provided by the WebSocket$Typings extension
no setter - protocol → String
-
Available on WebSocket, provided by the WebSocket$Typings extension
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
-
Available on WebSocket, provided by the WebSocket$Typings extension
Returns the state of the WebSocket object's connection. It can have the values described below.no setter -
removeEventListener
→ ({void Function<
K$>(WebSocketEventMap< $1, void Function(String type, Object listener, [Object? options]) $2})K$> type, dynamic listener(K$), [Object? options]) -
Available on WebSocket, provided by the WebSocket$Typings extension
Overload accessor: $1, $2no setter - send ↔ void Function(Object)
-
Available on WebSocket, provided by the WebSocket$Typings extension
getter/setter pair - url → String
-
Available on WebSocket, provided by the WebSocket$Typings extension
Returns the URL that was used to establish the WebSocket connection.no setter