asReplyEvent method

Message asReplyEvent()

Return a new Message with the event name being that of a proper reply message.

Implementation

Message asReplyEvent() {
  return Message(
    ref: ref,
    payload: payload,
    event: PhoenixChannelEvent.replyFor(ref!),
    topic: topic,
    joinRef: joinRef,
  );
}