WebSockets on Windows 7

Answered
0
0

Dear WiseJ Team,

Unfortunately at the moment I have no other option than to host the application on a Windows 7 machine.

As I understand neither IIS7.5 nor Wisej.HostService.exe supports WebSockets, because the System.Web.WebSockets class relies on HTTP.SYS, which in turn has not implemented WebSockets on Win 7 / 2008 R2.

I see the typical console output: Firefox can’t establish a connection to the server at ws://<fqdn>:90/app.wx?url=http://<fqdn>:90/&sid=…

And the about:networking#websockets is also empty. I checked, everything works well on later versions of OS.

My questions would be:

  1. How much to expect in performance gain when using WebSockets vs HTTP fallback? In what scenarios WebSockets are used by WiseJ and thus will perform better?
  2. Will it pay out to to spend time trying to make Wisej.HostService using a 3rd party library, which supports WebSockets (e.g. WebSocketListener [1])?

Many thanks,

Kizaemon

[1] https://github.com/vtortola/WebSocketListener

  • You must to post comments
Best Answer
0
0

Hi Kizaemon,

in a non-Websocket environment you can try using the pollingInterval setting in default.json.

Its default is 0 and is has no effect when running on Websockets. For http you can define an interval (in ms) where the server will poll for changes emulating Websockets pretty closely.

Of couse it depends on your application but it might come pretty close from the user perspective without having to write different code for WebSocket and http connections.

Hope that helps.

Best regards
Frank

  • Kizaemon
    This works for me now. Thank you.
  • You must to post comments
1
0

Hi Simone,

good catch. It should be pollingInterval as written here.
We´ll update the Wisej templates to fix the Problem.

Thanks,
Frank

  • You must to post comments
0
0

Hi Frank,

i have noted that “Deafult.json” is generated with option “pollInterval: …”

 

When trying using “pollInterval” instead of “pollingInterval” as you suggest cause Application Error on startup.

Maybe a writing error?

Thanks

Attachment
  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.