Giter VIP home page Giter VIP logo

Comments (8)

magixsource avatar magixsource commented on August 17, 2024

btw,my chrome version is 52,os is Windows 7

from native-messaging.

vakho10 avatar vakho10 commented on August 17, 2024

@magixsource The native messaging's "message" you receive itself can be 1MB maximum. This is the quote from their website: "The maximum size of a single message from the native messaging host is 1 MB, mainly to protect Chrome from misbehaving native applications" and here's the link: https://developer.chrome.com/extensions/nativeMessaging

from native-messaging.

magixsource avatar magixsource commented on August 17, 2024

@vakho10 Thanks, "message" i send in customevent just a json string not big than 1MB
but how pity chrome logging could not show me why 1953720652 bytes long.

from native-messaging.

vakho10 avatar vakho10 commented on August 17, 2024

@magixsource I have seen your JSON message and I do understand that it is way smaller than 1MB, but maybe your application continuously sends data or sends JSON first and then some huge data.1953720652 bytes is a lot of data. Don't forget that first 4 bytes you send is the size of message and then comes the message itself. Maybe that's the problem?

from native-messaging.

magixsource avatar magixsource commented on August 17, 2024

@vakho10 Hey,Today i try to build an exe host in C++, and i send same message like 2 days ago,in chrome logging console,i can't find native_message_process_host.cc error anymore.
i don't know why,but i will stop develop java host and change to develop c++ host.

do you know how to mock native message protocol message ? thanks.
:)

from native-messaging.

vakho10 avatar vakho10 commented on August 17, 2024

@magixsource Sadly, no.

from native-messaging.

magixsource avatar magixsource commented on August 17, 2024

@vakho10 Hey bro,I know why my java jar host "Native Messaging host tried sending a message that is 1953720652 bytes long". that's because java debug args " -Xdebug -Xrunjdwp:transport=dt_socket,address=9998,server=y,suspend=n",may be dt_socket try to write some data to stdout,so chrome native message received and error,haha.
i remove deubg args so java jar host work well . 👯

from native-messaging.

vakho10 avatar vakho10 commented on August 17, 2024

@magixsource I'm glad to hear that.

from native-messaging.

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.