websocket - HoloLens 网络套接字

标签 websocket hololens

我正在尝试使用 System.Net.Sockets; 为 HoloLens 编写一个 Websocket 客户端。 它可以在 Unity 中运行,但是当我尝试为 HoloLens 构建它时,我收到如下错误:

Socket does not contain a definition of Connect

Unity 的 websocket 库也不起作用。 如何为 HoloLens 创建 websocket 客户端?

最佳答案

我相信您需要使用websockets for UWP对于 Hololens 并使用 System.Net.Sockets 作为 Unity 编辑器和 wrap the UWP codeNETFX_COREWINDOWS_UWP 中定义。

关于websocket - HoloLens 网络套接字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40720707/

相关文章:

Azure 空间 anchor - Hololens - 不起作用

javascript - 如何从 javascript websocket 触发函数

c# - Hololens 上的 C# Unity 中未找到模块 C++ .dll

azure - SignalR核心: is ARR affinity needed when web sockets are enabled and the Azure app service is scaled out to multiple instances?

websocket - 相当于 websockets 的wiremock?

spatial - Hololens 空间理解计算测量

visual-studio - Unity 找不到任何受支持的 Visual Studio 安装

unity-game-engine - HoloLens - 是否有可能结合 MRTK 和 HoloLens2ForCV?

AngularJS:通过 Websocket 发送身份验证 header

php - Laravel Web-socket 和 Chrome `SameSite` 属性