getPong static method
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);
}