PhoenixMessage.heartbeat constructor

PhoenixMessage.heartbeat(
  1. String? pendingHeartbeatRef
)

Constructor for a hearbeat message.

Implementation

PhoenixMessage.heartbeat(String? pendingHeartbeatRef) {
  ref = pendingHeartbeatRef;
  payload = {};
  event = "heartbeat";
  topic = "phoenix";
}