WebSocket.onmessage
La propriété WebSocket.onmessage
est un gestionnaire d'évènement (en-US) qui est appelé lorsqu'un message est reçu depuis le serveur. Ce gestionnaire est appelé avec un évènement MessageEvent
en paramètre.
Syntaxe
unWebSocket.onmessage = function(event) {
console.debug("Message WebSocket reçu :", event);
};
Valeur
Un objet EventListener
.
Spécifications
No specification found
No specification data found for api.WebSocket.onmessage
.
Check for problems with this page or contribute a missing spec_url
to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.
Compatibilité des navigateurs
No compatibility data found for api.WebSocket.onmessage
.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.