Json class
- Inheritance
-
- Object
- EventEmitter
- EventEmitterWithError<
String, EventsWithError< String> > - BaseConnection<
EventsWithError< String> , String> - DataConnection
- BufferedConnection
- Json
Properties
- bufferSize → int
-
no setterinherited
- connectionId ↔ String
-
getter/setter pairinherited
- dataChannel ↔ RTCDataChannel?
-
getter/setter pairinherited
- decoder → TextDecoder
-
final
- encoder → TextEncoder
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label ↔ String
-
getter/setter pairinherited
-
listeners
→ Set<
EventListener> -
List of all listeners active in the emitter.
finalinherited
- messageSize ↔ int
-
getter/setter pairinherited
- metadata ↔ dynamic
-
Any type of metadata associated with the connection,
passed in by whoever initiated the connection.
getter/setter pairinherited
- open ↔ bool
-
getter/setter pairinherited
- options → dynamic
-
finalinherited
- peer → String
-
finalinherited
- peerConnection ↔ RTCPeerConnection?
-
getter/setter pairinherited
- provider ↔ Peer?
-
getter/setter pairinherited
- reliable → bool
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serialization → String
-
final
- type → String
-
no setterinherited
Methods
-
addEventListener<
T> (EventListener< T> listener) → bool -
Adds a listener to the emitter.
When an event is emitted, the listeners added will be matched.
inherited
-
bufferedSend(
Uint8List msg) → void -
inherited
-
close(
{bool flush = false}) → void -
inherited
-
emit<
T> (String type, [T? data]) → bool -
Emit a event with a specific event type and data type.
This will broadcast the message to all listeners that match the same event type and data type.
inherited
-
emitError(
String type, dynamic error) → void -
inherited
-
emitEvent<
T extends Event> (T event) → bool -
Emits an event to all listeners.
This will broadcast the event to all listeners that match the same event type and data type.
inherited
-
handleDataMessage(
RTCDataChannelMessage message) → void -
override
-
handleMessage(
ServerMessage message) → Future< void> -
inherited
-
initializeDataChannel(
RTCDataChannel dc) → Future< void> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
off<
T> ({String? type, EventCallback< T> ? callback}) → bool -
Remove an attached listener, by event type, data type and callback...
inherited
-
on<
T> (String? type, EventCallback< T> callback) → EventListener<T> -
Attach a listener to an emitter.
Calls the
callback
whenever there's a new event of the specified event type and data type.inherited -
onAny<
T> (EventCallback< T> callback) → EventListener<T> -
Same as
on
but without a type.inherited -
once<
T> (String? type, [EventCallback< T> ? callback]) → Future<T> -
Same as
on
but with a callback that is only called once.inherited -
parse(
String data) → dynamic -
parseMaximumSize(
RTCSessionDescription? description) → int -
inherited
-
privateSend(
dynamic data, [bool chunked = false]) → Future< void> -
override
-
removeEventListener<
T> (EventListener< T> listener) → bool -
Removes a listener from the emitter.
inherited
-
send(
dynamic data, {bool chunked = false}) → Future< void> -
inherited
-
stringify(
dynamic data) → String -
toString(
) → String -
A string representation of this object.
inherited
-
updateMaximumMessageSize(
) → Future< void> -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited