简体   繁体   中英

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.

But, digging deeper I've just figured out that class is not in the Windows Phone 8 SDK.

Do you know if is there any other implementation of a Websockets client which is compatible with Windows Phone 8?. (Behold, not Windows 8)

Windows Phone 8 unfortunately provides no native websocket-support like WinRT's MessageWebSocket. You can use the websocket4net library (see codeplex: http://websocket4net.codeplex.com/ ) for your wp8 app.

EDIT: websocket4net also supports SSL for WP8!

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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