No support for System.Net.WebSocket nor System.Net.ClientWebSocket?

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
Dierk Droth
Posts: 5
Joined: Wed Mar 29, 2017 9:53 pm

No support for System.Net.WebSocket nor System.Net.ClientWebSocket?

Postby Dierk Droth » Thu Mar 30, 2017 1:22 am

Hi,

I found that System.Net.WebSocket is not supported. I understand that there is a wrapper for the existing JavaScript sockets available
http://forums.cshtml5.com/viewtopic.php?f=7&t=276
... however, that wrapper does not correctly implement System.Net.WebSocket and System.Net.ClientWebSocket.

Also, there is no support to send binary data.

Are there any plans to provide proper support for both classes?

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: No support for System.Net.WebSocket nor System.Net.ClientWebSocket?

Postby JS-Support @Userware » Thu Mar 30, 2017 5:26 am

Hi,

Do you think it would be possible for you to create a class that mimics the "System.Net.WebSocket" class (in terms of methods signatures) and redirect all the calls to the wrapper extension that you mentioned?

As far as binary data is concerned, the JavaScript WebSocket class appears to support binary transfer, so it should be possible to update the open-source WebSocket extension that you mentioned to add support for it. I only had a quick look at the matter, but here an example material that may help:
http://blog.mgechev.com/2015/02/06/parsing-binary-protocol-data-javascript-typedarrays-blobs/

Thanks.
Regards,
JS-Support

Dierk Droth
Posts: 5
Joined: Wed Mar 29, 2017 9:53 pm

Re: No support for System.Net.WebSocket nor System.Net.ClientWebSocket?

Postby Dierk Droth » Thu Mar 30, 2017 9:01 pm

Yes, I could create a wrapper class around the JavaScript websocket similar to the one which I referenced in the link in my post.

However, I liked to know if C#HTML5 is considering to officially support (Client)WebSocket and if so when?

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: No support for System.Net.WebSocket nor System.Net.ClientWebSocket?

Postby JS-Support @Userware » Fri Mar 31, 2017 6:44 am

Dierk Droth wrote:However, I liked to know if C#HTML5 is considering to officially support (Client)WebSocket and if so when?


For the built-in "officially supported" features, at the moment we are focusing on:
- the features listed on the Roadmap at:
http://cshtml5.com/links/roadmap.aspx
- the most voted features on UserVoice at:
https://cshtml5.uservoice.com/

In our short-term roadmap, WebSocket may continue to be an open-source community extension.

However, we are happy to rapidly develop things that are neither on the roadmap nor on UserVoice through paid professional services. Please feel free to contact us for a quote.

Thank you.
Regards,
JS-Support

Dierk Droth
Posts: 5
Joined: Wed Mar 29, 2017 9:53 pm

Re: No support for System.Net.WebSocket nor System.Net.ClientWebSocket?

Postby Dierk Droth » Fri Mar 31, 2017 11:15 am

Thanks for your feedback


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 45 guests

 

 

cron