Os nossos voluntários ainda não traduziram este artigo para Português (Europeu). Junte-se a nós e ajude-nos a fazer o trabalho!
A MessageEvent is the interface representing a message received by a target, being a WebSocket or a WebRTC RTCDataChannel
The action triggered by this event is set via an event handler set on WebSocket.onmessage or RTCDataChannel.onmessage.
Attributes
| Attribute | Type | Description |
data |
DOMString | Blob | ArrayBuffer |
The data from the server. |
Browser compatibility
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | ? | 4.0 (2.0)[1] | ? | ? | ? |
| Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | ? | ? | ? | ? | ? |
[1] As of Gecko 11.0, Gecko supports ArrayBuffer for data, but not Blob.
See also
WebSocketWebRTC
Etiquetas do documento e colaboradores
Etiquetas:
Contributors to this page: Sebastianz, jpmedley, fscholz, teoli, DirectXMan12, kscarfone, Kennyluck, evilpie, Sheppy
Última atualização por:
Sebastianz,