Page 1 of 1

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

Posted: Thu Mar 30, 2017 1:22 am
by Dierk Droth
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?

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

Posted: Thu Mar 30, 2017 5:26 am
by JS-Support @Userware
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

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

Posted: Thu Mar 30, 2017 9:01 pm
by Dierk Droth
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?

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

Posted: Fri Mar 31, 2017 6:44 am
by JS-Support @Userware
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

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

Posted: Fri Mar 31, 2017 11:15 am
by Dierk Droth
Thanks for your feedback