Giter Club home page Giter Club logo

Comments (6)

Remo avatar Remo commented on May 19, 2024

If we could acess the raw JSON data from ChromelyRequest we might be able to use the already available litjson.

from chromely.

mattkol avatar mattkol commented on May 19, 2024

@Remo thanks for pointing that out.

Chromely was designed to be extremely lightweight - only using external libraries when it is extremely required. I chose LitJSON because it was easier to embed. I wanted developers to use any Json serializer of their choice. Yes, the approach you suggested is in line with Chromely design approach, and I will look into integrating that in the future.

from chromely.

mattkol avatar mattkol commented on May 19, 2024

@Remo I tested the demos using JavaScriptSerializer as you suggested.

For CefSharp, this only works successfully for .NET Javascript Integration (Bounded objects) demos. CefGlue demos have similar issue - does not work for all demos. Each IPC communication type processes data differently.

For other demos to work, I had to do some tweaking. Since the DemoController is used for all IPC communication types .NET/Javascript integration, Generic Message Routing, Ajax HTTP/XHR and Websocket - it is advisable to leave it the way it is for consistency across demos.

Developers can then use approaches that suit their implementations

from chromely.

Remo avatar Remo commented on May 19, 2024

@mattkol thanks for keeping an eye on this!

I've also had another look and I believe there's an even easier solution. What do you think about this #40?

I didn't test the linux demos, but CefGlue and CefSharp work for me, it doesn't add a new dependency and converts to a propery list of movies.

from chromely.

mattkol avatar mattkol commented on May 19, 2024

@Remo you are welcome.

Sure I will look at the PR. Will be by weekend, currently out of town.

However, this is what I did too. The DemoController is for all IPC modes of communication, and as long as the PR works for all of them (NET/Javascript integration, Generic Message Routing, Ajax HTTP/XHR and Websocket ), then we will be fine.

For us to be on same page, when you said you tested CefGlue and CefSharp worked for you, all IPC demos? Each has at least 2 demo options. CefGlue has Websocket. I will retest to see what I may be missing.

I will keep you posted.

Thanks.

from chromely.

Remo avatar Remo commented on May 19, 2024

@mattkol I've tested the Ajax Demo and Message Router Demo in CefGlue and .NET/JavaScript Integration Demo and the Ajax Demo in CefSharp, but not the websocket, didn't notice it uses the DemoController/Movie class too. Will try to have a look.
Take as much time as you need, I'm just playing around with Chromely to see if it's something I want to use in the future. Not having to work with untyped structures is one part of getting there ;-)

from chromely.

Related Issues (20)

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.