isValidMessage static method

bool isValidMessage(
  1. Uint8List message
)

Checks if the given message is a valid wamp message

Implementation

static bool isValidMessage(Uint8List message) {
  var messageType = message[0];
  return messageType != messageWamp ||
      messageType != messagePing ||
      messageType != messagePong;
}