getPing static method

List<int> getPing(
  1. dynamic isUpgradedProtocol
)

Get a ping message without a body. If the isUpgradedProtocol is true the header will have a size of 5 bytes otherwise 4.

Implementation

static List<int> getPing(isUpgradedProtocol) {
  return buildMessageHeader(messagePing, 0, isUpgradedProtocol);
}