harmony 鸿蒙WebSocket

2025-06-12 浏览 (2)

WebSocket

Overview

Defines the WebSocket client structure.

Since: 11

Related module: Netstack

Header file: net_websocket_type.h

Summary

Member Variables

NameDescription
WebSocket_OnOpenCallback onOpenPointer to the callback invoked when the WebSocket client receives a connection message.
WebSocket_OnMessageCallback onMessagePointer to the callback invoked when the WebSocket client receives a message.
WebSocket_OnErrorCallback onErrorPointer to the callback invoked when the WebSocket client receives an error message.
WebSocket_OnCloseCallback onClosePointer to the callback invoked when the WebSocket client receives a close message.
WebSocket_RequestOptions requestOptionsOptions of the connection request.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Network Kit

harmony 鸿蒙NetConn_ConnectionProperties

harmony 鸿蒙NetConn_HttpProxy

harmony 鸿蒙NetConn_NetAddr

harmony 鸿蒙NetConn_NetCapabilities

harmony 鸿蒙NetConn_NetConnCallback

harmony 鸿蒙NetConn_NetHandle

harmony 鸿蒙NetConn_NetHandleList

harmony 鸿蒙NetConn_NetSpecifier

harmony 鸿蒙NetConn_Route

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/N6Onpy