Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)

like image 335
HyLian Avatar asked Feb 08 '13 23:02

HyLian


2 Answers

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

like image 87
Alexander Avatar answered Sep 24 '22 15:09

Alexander


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.

like image 43
jdearana Avatar answered Sep 25 '22 15:09

jdearana