开发者

Is it possible to make a WebSocket connection in Silverlight?

Is it possible to make a WebSocket connection in Silverlight?开发者_如何学C Or if not, does anyone know whether this is scheduled for future versions?


Ostensibly yes.

In fact it has been used to provide a fall back solution for browsers that don't support WebSockets.

See the following for more info but note that this implementation is against v75 not v76 (latest).

Demo: http://40interop.ep.interop.msftlabs.com/html5/wschat.html

Info: http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2010/07/27/silverlight-and-websockets.aspx

Info: http://tomasz.janczuk.org/2010/07/silverlight-html5-websocket-client-with.html


Some vendors provide WebSocket APIs for client environments other than JavaScript. Kaazing, for example, has full-fledged support for .NET/Silverlight clients (in addition to Flash/Flex, and Java.

Note: Kaazing now provides AngularJS, ReactJS, Objective-C (iOS), Xamarin (.NET with support for iOS and Android), Java, .NET, and Android clients. However support for SilverLight and Flash have been deprecated.

Here you find complete documentation, and you may want to check out some of the fancy demos here too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜