Dimitri C.
Dimitri C.

Reputation: 22496

Is it possible to make a WebSocket connection in Silverlight?

Is it possible to make a WebSocket connection in Silverlight? Or if not, does anyone know whether this is scheduled for future versions?

Upvotes: 2

Views: 1822

Answers (2)

Peter Moskovits
Peter Moskovits

Reputation: 4366

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.

Upvotes: 1

chrismilleruk
chrismilleruk

Reputation: 2516

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

Upvotes: 3

Related Questions