emit abstract method
Emit data
to the window identified by the given key
.
The from
should default to the current window's key.
data
can be anything as long as it is a Dart standart data type.
Implementation
Future<void> emit(String key, String from, dynamic data);