Your Search Results

    MessageEvent

    Draft
    This page is not complete.

    A MessageEvent is sent to clients using WebSockets when data is received from the server. This is delivered to the listener indicated by the WebSocket object's onmessage attribute.

    Attributes

    Attribute Type Description
    data DOMString | Blob | ArrayBuffer The data from the server.

    See also

    Browser compatibility

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
    Basic support ? 4.0 (2.0) ? ? ?
    Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
    Basic support ? ? ? ? ?

    Gecko notes

    Note: As of Gecko 11.0, Gecko supports ArrayBuffer for data, but not Blob.

    Document Tags and Contributors

    Contributors to this page: evilpie, Sheppy, DirectXMan12, kscarfone, Kennyluck, teoli
    Last updated by: DirectXMan12,