onWebSocketRequest method

void onWebSocketRequest(
  1. dynamic message
)

Implementation

void onWebSocketRequest(message) {
  if (message is String) {
    Map<String, dynamic>? data = _parseMessage(message);
    if (onFrontendMessage != null) {
      onFrontendMessage!(data);
    }
  }
}