Dart API Referencedart:ioMessageEvent

MessageEvent abstract class

Event delivered when there is data on a web socket connection.

abstract class MessageEvent extends Event {
  /**
   * The type of [message] is either [:String:] or [:List<int>:]
   * depending on whether it is a text or binary message. If the
   * message is empty [message] will be [:null:]
   */
  get data;
}

Extends

Event > MessageEvent

Properties

final data #

The type of message is either String or List<int> depending on whether it is a text or binary message. If the message is empty message will be null

get data;