[SOLVED] BackgroundTasks example

Answered Closed
0
0

Is the BackgroundTasks example working properly?  The images don’t change until refresh, and the messages don’t appear until the browser loses focus.

I’ve tested it in several browsers including IE, Chrome, and Firefox.

  • You must to post comments
Best Answer
0
0

Setting enableWebSocket to true fixed the problem.

Thank you.

 

  • You must to post comments
0
0

It may not work if your server doesn’t support WebSocket. You need either Windows 8 or Server 2012 minimum. Otherwise it’s only http and the task cannot update the client. In that case you’d need to add  timer.

http://demo.wisej.com/apps/backgroundtasks.html

  • You must to post comments
0
0

Hi Luca,

I thought (just for fun) I’d update the background tasks example for Jim but even though the buttons and the notification are now working the canvas element is not updated.

Even though my timer is only ticking every 100ms I would still expect to see an update every now and then but nothing happens.

Is there something else required for canvas?

Thanks

Nic

  • You must to post comments
0
0

Hi Jim

we just noticed that websockets are disabled in the demo download (probably due to some tests we did).
We´ll update the sample.

Can you please retry after setting

enableWebSocket to true in default.json ?

Best regards
Frank

  • You must to post comments
Showing 4 results