Giter VIP home page Giter VIP logo

Comments (6)

 avatar commented on August 29, 2024

I fogot to comment that objects in server side were registerd with @Remote object in the client side

from dart_amf.

blanchg avatar blanchg commented on August 29, 2024

Does your deployed version on jboss work with Chromium 45 as well?

from dart_amf.

 avatar commented on August 29, 2024

Yes, deployed version is workable with chromium45, but are fail on chrome50.
I tried to print out what I got after remote call, the instance(object) list was recieved by chromium, and the json objecct list was recieved. So interesting.

from dart_amf.

blanchg avatar blanchg commented on August 29, 2024

You will likely need to debug the names coming back and the names being registered when you use @RemoteClass

lib/src/amf_io.dart function readScriptObject

This function is where it decodes the incoming objects maybe uncomment the print statements and see what you can discover from that. Hopefully it is just a simple change to get it working for both.

from dart_amf.

 avatar commented on August 29, 2024

Thanks for your suggestions. Something different were found when webapp executed on two browsers. Chromium would load the native dart script to execute, and chrome load the js code compiled by dart2js. The difference was observed by the dev tool. Furthermore, adopted your suggestios, l found maps for registered objects in amf_io will not keep my @RemoteObject, and only keep flex related class. So, I force to call registerClass to register my class in main, but when l used print to list all map, my clazz become meaningless alphabets, like {“com. mycompany.ws”, rj}, “rj” is the remote object “MyController”.

from dart_amf.

blanchg avatar blanchg commented on August 29, 2024

What is the name of the class it is looking for compared to the name you registered.

e.g. compare the output of https://github.com/blanchg/dart_amf/blob/master/lib/src/amf_io.dart#L621 with your code Amf.registerClass("server.package.Animal", Animal);

from dart_amf.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.