getPong static method

List<int> getPong(
  1. int pingLength,
  2. dynamic isUpgradedProtocol
)

Get a pong message with a given pingLength. If the isUpgradedProtocol is true the header will have a size of 5 bytes otherwise 4.

Implementation

static List<int> getPong(int pingLength, isUpgradedProtocol) {
  return buildMessageHeader(messagePong, pingLength, isUpgradedProtocol);
}