简体   繁体   English

Windows Phone 8中的Websockets客户端支持

[英]Websockets client support in Windows Phone 8

When I read about MessageWebSocket class in Windows 8, I started to think about an Application which could use that client in the Windows Phone 8. 当我了解Windows 8中的MessageWebSocket类时,我开始考虑可以在Windows Phone 8中使用该客户端的应用程序。

But, digging deeper I've just figured out that class is not in the Windows Phone 8 SDK. 但是,深入研究后,我发现该类不在Windows Phone 8 SDK中。

Do you know if is there any other implementation of a Websockets client which is compatible with Windows Phone 8?. 您是否知道是否有与Windows Phone 8兼容的Websockets客户端的其他实现? (Behold, not Windows 8) (注意,不是Windows 8)

Windows Phone 8 unfortunately provides no native websocket-support like WinRT's MessageWebSocket. 不幸的是,Windows Phone 8不提供像WinRT的MessageWebSocket这样的本地websocket支持。 You can use the websocket4net library (see codeplex: http://websocket4net.codeplex.com/ ) for your wp8 app. 您可以为wp8应用程序使用websocket4net库(请参阅codeplex: http ://websocket4net.codeplex.com/)。

EDIT: websocket4net also supports SSL for WP8! 编辑:websocket4net还支持WP8的SSL!

regards, alex 问候,亚历克斯

I'd give a try to SignalR... it seems the right way to implement WebSockets since it's part of the MSFT Web tech stack: Channel 9 intro video 我会尝试SignalR ...这似乎是实现WebSockets的正确方法,因为它是MSFT Web技术堆栈的一部分: Channel 9简介视频

BTW: the API has an interesting level of abstraction where you can manage client groups, nice support for different authentication startegies, etc... The only think I miss is that binary serialization is not supported, at least out of the box. 顺便说一句:该API具有有趣的抽象级别,您可以在其中管理客户端组,对不同的身份验证实例的良好支持等。...我唯一想念的是,至少在开箱即用的情况下,不支持二进制序列化。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM