platformOnMessageReceived method
Internal method that shouldn't be visible
Implementation
@internal
void platformOnMessageReceived(CastMessage castMessage) {
var thisOnMessageReceived = onMessageReceived;
if (thisOnMessageReceived == null) return;
final namespace = castMessage.namespace ?? "";
final message = castMessage.message ?? "";
thisOnMessageReceived(namespace, message);
}