Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun Dec 17, 2017 1:05 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: WebSockets desactivated ?
PostPosted: Thu Apr 11, 2013 3:17 am 
Offline

Joined: Wed Apr 13, 2011 2:07 pm
Posts: 30
I was searching for a long time why websockets wasn't used in my application.
I've red that 2012 R2 should support it with compatible browsers but it never happened.

In fact, the following code in framework.js this code always set websocket to false :
if(false && !!window.WebSocket && RS.mode == 1) {


Does someone knows about this ?

Thanks

Valery


Top
 Profile  
Reply with quote  
 Post subject: Re: WebSockets desactivated ?
PostPosted: Thu Apr 11, 2013 4:07 am 
Offline
User avatar

Joined: Tue Jan 04, 2011 3:02 am
Posts: 1236
Location: Jönköping, Sweden
I think WebSockets is only available in Standalone builds, not CGI if that's what you're using :)

_________________
Image http://www.linkedin.com/in/albinkiland
Dev. iMac 27" + 2x22" LG (2.8GHz Intel Core i7, 12GB RAM, 120GB SSD) OS X 10.8
Xojo Pro 2013r1


Top
 Profile  
Reply with quote  
 Post subject: Re: WebSockets desactivated ?
PostPosted: Thu Apr 11, 2013 5:41 am 
Offline

Joined: Wed Apr 13, 2011 2:07 pm
Posts: 30
Of course, all my tests were done in standalone deployment (not CGI).
I confirm that websockets are never (and can't be) used at this point with 2012 R2.1


Top
 Profile  
Reply with quote  
 Post subject: Re: WebSockets desactivated ?
PostPosted: Thu Apr 11, 2013 6:28 am 
Offline
User avatar

Joined: Tue Jan 04, 2011 3:02 am
Posts: 1236
Location: Jönköping, Sweden
Hmm, are you sure?
The line from framework.js you posted above can't be found in framework.js on a built app?
http://yourapp.com:8080/framework/framework.js
Though I dont know anything about javascript :/

_________________
Image http://www.linkedin.com/in/albinkiland
Dev. iMac 27" + 2x22" LG (2.8GHz Intel Core i7, 12GB RAM, 120GB SSD) OS X 10.8
Xojo Pro 2013r1


Top
 Profile  
Reply with quote  
 Post subject: Re: WebSockets desactivated ?
PostPosted: Fri Apr 12, 2013 3:49 am 
Offline

Joined: Wed Apr 13, 2011 2:07 pm
Posts: 30
Unfortunatly, I'm sure :(
The framework.js is taken from the browser debugger and the "if false" is disabling WebSockets forever.


Top
 Profile  
Reply with quote  
 Post subject: Re: WebSockets desactivated ?
PostPosted: Fri Apr 12, 2013 5:06 am 
Offline

Joined: Wed Mar 22, 2006 11:15 am
Posts: 712
Location: Southern California
WebSockets were having problems with 2011, so RS disabled them in 2012. The release notes for 2012r1 state that they were supposed to be re-enabled in 2012r2, but it doesn't look like that happened.

_________________
Daniel L. Taylor
Custom Controls for Real Studio WE!
Visit: http://www.webcustomcontrols.com/


Top
 Profile  
Reply with quote  
 Post subject: Re: WebSockets desactivated ?
PostPosted: Thu May 02, 2013 11:18 pm 
Offline
User avatar

Joined: Tue Jan 04, 2011 3:02 am
Posts: 1236
Location: Jönköping, Sweden
Thom or someone, is WebSockets enabled for Stand Alone builds i 2013r1 (Xojo)?

_________________
Image http://www.linkedin.com/in/albinkiland
Dev. iMac 27" + 2x22" LG (2.8GHz Intel Core i7, 12GB RAM, 120GB SSD) OS X 10.8
Xojo Pro 2013r1


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group