WebSocket.onmessage
özelliği sunucu tarafından mesaj iletildiğinde çağırılan bir EventHandler
'dir. MessageEvent
ile çağırılır..
Sözdizim
aWebSocket.onmessage = function(event) {
console.debug("WebSocket message received:", event);
};
Değer
Bir EventListener
.
Belirtimler
Belirtim | Durum | Yorum |
---|---|---|
HTML Living Standard The definition of 'WebSocket: onmessage' in that specification. |
Living Standard | İlk tanım |
Tarayıcı desteği
BCD tables only load in the browser
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.