UDP插件API文档(Uniapp)
    正在准备搜索索引...

    类型别名 UtsUdpClientCallback

    UDP客户端链接回调函数

    type UtsUdpClientCallback = {
        onReceivedData?: (
            session: UtsUdpSocketSession,
            message: UtsUdpClientReceiveMessage,
        ) => void;
        onErrorStr?: (errorMsg: string) => void;
    }
    索引

    属性

    onReceivedData?: (
        session: UtsUdpSocketSession,
        message: UtsUdpClientReceiveMessage,
    ) => void

    客户端发送过来的数据消息回调

    类型声明

    onErrorStr?: (errorMsg: string) => void

    错误消息回调

    类型声明

      • (errorMsg: string): void
      • 参数

        • errorMsg: string

          错误信息

        返回 void

        此函数不返回任何值