其他分享
首页 > 其他分享> > 关于websocket

关于websocket

作者:互联网

文档

The WebSocket.onmessage property is an event handler that is called when a message is received from the server. It is called with a MessageEvent.

语法示例

aWebSocket.onmessage = function(event) {
  console.debug("WebSocket message received:", event);
};

标签:调用,WebSocket,层里,关于,onmessage,websocket,event
来源: https://blog.csdn.net/qq_39892828/article/details/118033680