notifyData method
Notifies all listeners of data
received by the websocket.
Implementation
void notifyData(final Map<String, dynamic> data) {
_timer?.cancel();
final T decoded = decoder(data);
final List<WebsocketListener<T>> listeners = _copyListeners;
for (final WebsocketListener<T> listener in listeners) {
listener.onData?.call(decoded);
}
}