This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-asjs.wiki.git


The following commit(s) were added to refs/heads/master by this push:
     new 1e0676e  Updated Apache Royale communication with AMF and RemoteObject 
(markdown)
1e0676e is described below

commit 1e0676ea4aeaefcabc27bef32131283d893a555b
Author: Carlos Rovira <[email protected]>
AuthorDate: Thu May 31 20:32:18 2018 +0200

    Updated Apache Royale communication with AMF and RemoteObject (markdown)
---
 ...yale-communication-with-AMF-and-RemoteObject.md | 29 +++++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/Apache-Royale-communication-with-AMF-and-RemoteObject.md 
b/Apache-Royale-communication-with-AMF-and-RemoteObject.md
index 87c2101..5a5918f 100644
--- a/Apache-Royale-communication-with-AMF-and-RemoteObject.md
+++ b/Apache-Royale-communication-with-AMF-and-RemoteObject.md
@@ -20,11 +20,38 @@ To run this example localy you can follow this steps. Note: 
At this time some pa
 
 ![Apache Royale communication with AMF and RemoteObject 
Example](https://pbs.twimg.com/media/Dbj86b4W4AACSfk.jpg:large)
 
-## CompressedRemoteObject
+## Remote Object Implementations
+### RemoteObject
+
+RemoteObject is based on the original one in Flex RPC library. It's done to 
work with BlazeDS, LCDS or CF AMF backend implementations. It support 
"clientId" management required for the backend to differentiate different 
connected clients.
+
+An example of use:
+
+```
+   <js:RemoteObject id="service"
+                    endPoint = 
"http://localhost:8080/messagebroker/websocket-amf";
+                    destination = "exampleService"
+                    result="onResult(event)" fault="onFault(event)"/>
+```
+
+Note: BlazeDS use by default special extra serialization through small 
messages. For now you need to turn this feature off until we fully implement 
it, but BlazeDS communication will work correctly. So use this for each 
_channel_ in your _services-config.xml_ with:
+
+```
+   <channel-definition ...>
+      <properties>
+        <serialization>
+            <enable-small-messages>true</enable-small-messages>
+        </serialization>
+```
+
+### CompressedRemoteObject
 
 A new RemoteObject, called CompressedRemoteObject, that performs compression 
has been added to Apache Royale. RemoteObjectAMFTest client and SampleAmfWebApp 
application has been updated to show this new feature. This remote object 
compress the AMF data with the zlib algorithm to improve the transfer times 
even more.
 
 ![CompressedRemoteObject Example](https://snag.gy/JZnRF8.jpg)
 
+### SimpleRemoteObject
+
+For more simple AMF backends probably RemoteObject will be more than you need. 
For this reason you can use SimpleRemoteObject that doesn't care about 
"clientId", or other BlazeDS functionalities.
 
 Enjoy!
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to