Giter Club home page Giter Club logo

node-ipc's People

Contributors

0x5e avatar alansikora avatar atiertant avatar benblank avatar dependabot[bot] avatar dkillebrew avatar kanaye avatar kevinwilson541 avatar lstratman avatar luciopaiva avatar mayberex avatar mbthaumatec avatar mirague avatar mirdukkk avatar mostafa-samir avatar mwshortt avatar nileshprasad avatar orthographic-pedant avatar riaevangelist avatar robatron avatar rsp avatar si458 avatar stealthmate avatar tenbits avatar theadd avatar tripodsgames avatar ulivz avatar vale981 avatar wplittle avatar yoo2001818 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-ipc's Issues

Increase Buffer Size

Hi, I'm running a few experiments transmitting raw data using rawBuffer=true and encoding='hex'. I noticed that messages over 8Kb are chunked into multiple messages of 8192 bytes each. I realized we can reconstruct the original message by concatenating the chunks, but I'm wondering if there's a way to increase the chunk size?

Thanks.

Unsupported engine

npm i node-ipc
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@achrinza/[email protected]',
npm WARN EBADENGINE required: {
npm WARN EBADENGINE node: '8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19'
npm WARN EBADENGINE },
npm WARN EBADENGINE current: { node: 'v20.11.0', npm: '10.2.4' }
npm WARN EBADENGINE }

Add emit(value: any) definition for when using raw buffer

Description

When using the rawbuffer option in the client, the emit function should also support the emit(value: any) signature. Currently, the type definition only provides emit(event: string, value?: any): Client;. This causes type errors when trying to use the emit function with only a value argument in TypeScript.

Expected Behavior

The type definition for the emit function should include both:

  1. emit(event: string, value?: any): Client;
  2. emit(value: any): Client;

Steps to Reproduce

  1. Set up a TypeScript project with the node-ipc library.
  2. Configure a client to use the rawbuffer option with the following code:
import RawIPC from 'node-ipc';

const ipc = new RawIPC.IPC();
ipc.config.rawBuffer = true;
ipc.config.encoding = 'hex';

ipc.connectTo('test', () => {
    const message = Buffer.from([0x62]);
    ipc.of['test'].emit(message);
});
  1. Notice the type error when trying to use the emit function with only a value argument.

Is the Protestware still there?

Hi
Can you please advise which version the protestware was added?

All previous releases are not there and I seem to not find the history too.

Yours is a great package, and I would like to use the one prior to the release when the the protesting codes were added.

Don't want to surprise my users!

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.