Hi Carlos, How to use WebSockets in Royale will depend on how you want to write your code. If you want to have a functionally equivalent SWF version of your Royale app (a good idea of you used Flex modules), you probably want to create a library that abstracts the SharedObject code on Flash and WebSocket code in JS under some common API. If you don't need a SWF version of your app, you can just use the WebSocket API if your app is configured to use js.swc instead of playerglobal.swc or airglobal.swc.
HTH, -Alex From: Carlos Cruz <[email protected]<mailto:[email protected]>> Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Date: Thursday, November 16, 2017 at 11:15 AM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: RE: RemoteObject Thanks Carlos and Doug for the information I will try to get it going and share some preliminary results hopefully by early next week. Another question that pops into my head regarding my project; currently I use “SharedObject” for synchronous communications with Red5 server for our telephony module. Since I’m trying to eliminate the dependency on Red5 I’m contemplating using websockets (html5 or atmosphere), can anyone tell me how I can use WebSockets from Royale? Thx! Carlos From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Carlos Rovira Sent: Thursday, November 16, 2017 6:44 AM To: [email protected]<mailto:[email protected]> Subject: Re: RemoteObject Hi Carlos, along with the RemoteObject classes that Doug said you can check the example at : - Royale client: /royale-asjs/examples/royale/RemoteObjectAMFTest - Royale java: /royale-asjs/examples/amf/SampleAmfWebApp I already tried string, numbers, collection with value objects with success, but still didn't try in real app where some last detail problems could emerge. Please as you use it, let us know if you find any problems and if you find any fill an issue in github Thanks! 2017-11-16 6:58 GMT+01:00 doug777 <[email protected]<mailto:[email protected]>>: Remote object is here https://github.com/apache/royale-asjs/tree/develop/frameworks/projects/Network/src/main/royale/org/apache/royale/net<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Ftree%2Fdevelop%2Fframeworks%2Fprojects%2FNetwork%2Fsrc%2Fmain%2Froyale%2Forg%2Fapache%2Froyale%2Fnet&data=02%7C01%7C%7C60c292d6b47d4b104d5e08d52d267f1f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636464565720533272&sdata=40Cx1o%2F1hmf4tfAwG9m2VzxeU%2Ba2wyr4UVKUVe%2FYOZU%3D&reserved=0> Doug -- Sent from: http://apache-royale-users.20374.n8.nabble.com/<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2F&data=02%7C01%7C%7C60c292d6b47d4b104d5e08d52d267f1f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636464565720533272&sdata=%2BBppWlCfS2MFzySX6uSjRjZvoAoOiuJMxIGMd3n4l5k%3D&reserved=0> -- Carlos Rovira http://about.me/carlosrovira<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7C%7C60c292d6b47d4b104d5e08d52d267f1f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636464565720533272&sdata=A2zPcKw%2Fngtd5SGRCRokeoNsS%2Fq6haV2l9%2FHcQfIIpE%3D&reserved=0>
