Comments (6)
If we could acess the raw JSON data from ChromelyRequest
we might be able to use the already available litjson.
from chromely.
@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.
@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.
@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.
@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.
@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)
- Can't sync ChromelyResponse.RequestId with ChromelyRequest.Id HOT 1
- What does Chromely offer extra over MS's WebView2? HOT 3
- How to show message window on the desktop HOT 1
- How to get all cookies on the website and write to cookie HOT 1
- Howto: Set & Retrieve Cookies
- Possible to use golang to integrate with chromely HOT 1
- Can chromely be used for real time streaming like electron app
- Templates vsix can't install HOT 1
- Include libcef.dll etc. when publishing HOT 2
- FFmpegDemuxer: no supported streams
- FFmpegDemuxer: no supported streams HOT 3
- COM Interop is not supported on this platform. HOT 2
- [MacOs] Crashed when start demo-projects/angular-react-vue: WirelessDiagnostics awd::metrics::protobuf_AddDesc_SimpleMetric_2eproto() + 44 HOT 1
- adding eto.forms library ? HOT 3
- Chromely browser with miltiple tabs on Linux HOT 2
- Random exception in DefaultAsyncHandlerBase HOT 1
- App does not execute HOT 3
- WebView control for MAUI application using Chromely HOT 1
- Cancel native app close HOT 4
- Add Contributing Guide
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chromely.