PhoenixMessageCallback typedef Null safety

PhoenixMessageCallback = void Function(Map? payload, String? ref, String? joinRef)

A function that describes how to responsd to a received message

Example

final PhoenixMessageCallback myCallback = (payload, ref, joinRef) {
  return payload;
}

Implementation

typedef void PhoenixMessageCallback(Map? payload, String? ref, String? joinRef);