toWire method

Map<String, Object> toWire()

The plain-JSON wire shape (a standalone frame, NOT externally tagged).

Implementation

Map<String, Object> toWire() => {
      'protocol_id': protocolId,
      'protocol_major_version': protocolMajorVersion,
      'codec': codec,
      'max_frame_size': maxFrameSize,
      'fragmentation_supported': fragmentationSupported,
      'ordered_reliable': orderedReliable,
      'peer_id': peerId,
      'session_id': sessionId,
      'features': List<String>.of(features),
    };