Commit graph

41 commits

Author SHA1 Message Date
Brandon
7da90e18f9 Basic TCP tests complete 2021-07-02 18:37:53 -07:00
Brandon
d48b268c6e migrating to ESM merging v9.2.1 2021-07-02 14:39:07 -07:00
Brandon
f3458e7a7b migrating to ESM 2021-07-02 14:35:02 -07:00
Simon Smith
74c7886968 set pipe read/write ability to variables 2021-07-02 21:10:01 +01:00
Simon Smith
f0c64a8282
allow all users to access the pipe 2021-06-30 14:39:52 +01:00
Alex Kit
f483e3153a fix (client retry) check if explicitly disconnected 2021-02-26 11:07:03 +01:00
Brandon
768c5fc3a6 MIT Licence and Buffer fix 2020-11-11 12:21:02 -08:00
Brandon Nozaki Miller
7469dbac01
Merge branch 'master' into fix-165 2019-12-02 00:57:26 -08:00
Timbo White
6b777493d2 fix #165 2019-11-11 14:51:27 +00:00
Duknam Yoo
800936ab08
Fix ipcBuffer being shared with all sockets 2017-11-09 14:42:05 +09:00
Luke Stratman
8463175f62 Fixed a syntax error 2017-05-24 13:38:42 -04:00
Luke Stratman
1df857ce3a Cluster module support
Added an option to control whether or not node-ipc unlinks the Unix
socket path when it starts a server which, when set to false, allows the
overall application to handle this and allows node-ipc to work with the
Node.js cluster module.
2017-05-24 13:36:40 -04:00
Brandon Nozaki Miller
fdfd13b98f binding this is better for garbage collection. 2017-05-18 14:22:56 -07:00
Alexandre Tiertant
f6bd9e7832 fix this.log is not a function 2017-05-05 14:30:22 +02:00
RIAEvangelist
6e9a012cb3 fixed poor require practice 2017-04-15 22:59:29 -07:00
RIAEvangelist
8886f82faa cleanup, performance improvements and reformatting 2017-04-15 22:17:25 -07:00
RIAEvangelist
e4098d1921 Merge branch 'master' of github.com:RIAEvangelist/node-ipc 2017-04-15 21:13:25 -07:00
RIAEvangelist
a5bf16503c es6 updates 2017-04-15 21:13:15 -07:00
Maksim Chartkou
33f717006b fix: this.log is not a function 2017-03-27 16:10:13 +03:00
Brandon Nozaki Miller
4edd1d044e do not reject messages
allow loose message sending, but prevent handling errors
2017-02-13 22:37:24 -08:00
Melvin Valster
4f9f206b42 Check for type and data not being undefined 2017-01-24 11:22:53 +01:00
Melvin
cfcf815275 Merge branch 'master' into master 2017-01-24 11:11:39 +01:00
RIAEvangelist
eda84a4093 fix for windows posix sockets 2016-12-21 19:34:53 -08:00
RIAEvangelist
872e3ff090 Default simplification and interface addition 2016-12-21 17:03:12 -08:00
Melvin
3ca19e205e Merge branch 'master' into master 2016-12-21 11:51:40 +01:00
Kevin Wilson
c849889590 call startTLSServer in socketServer to init this.server 2016-12-03 01:31:03 -08:00
Melvin
8de357f488 Ensure message format availability
Make sure the entire process doesn't crash when a message is sent without `type` and/or `data` as such:

```
error: Uncaught Exception TypeError: Cannot read property 'id' of undefined
    at Server.gotData (/usr/src/app/node_modules/@trail/pigeoneer/node_modules/node-ipc/dao/socketServer.js:181:24)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at Socket.EventEmitter.emit (/usr/src/app/node_modules/@trail/pigeoneer/node_modules/sc-domain/index.js:12:31)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:548:20)
```
2016-11-15 15:17:54 +01:00
SSMP
4b5f95a337 node version detection 2016-10-03 13:34:27 -07:00
SSMP
49b631b270 new event pubsub support 2016-09-30 06:00:28 -07:00
Brandon Nozaki Miller
bec3950022 Merge pull request #72 from Mostafa-Samir/win/fixes
Fixing retry logic and UDP4 default host
2016-07-14 16:03:22 -07:00
Brandon Nozaki Miller
c2bffb5451 Merge pull request #73 from Mostafa-Samir/disconnect/fix
Using a client-specific flag to disconnect instead of using config.stopRetrying
2016-07-14 16:02:33 -07:00
Mostafa Samir
90260d1d3d added 'explicitlyDisconnected' flag to Client object
this flag will be set to true when a 'ipc.disconnect' is called on the client to prevent the client from attempting to retry to connect
2016-04-04 00:30:44 +02:00
Mostafa Samir
d3181ddafe removed seemingly unnecessary resetRetriesCheck function
the function being set to fire after 100ms conflicted with delays in firing the 'disconnect' event on windows, and this resulted in the socket's 'retriesRemianing' being reset after every decrement and thus violatin the 'maxRetries' rule
2016-04-01 20:26:26 +02:00
Madeline Shortt
60be1a3a2e Fix typo in client log: recieved -> received 2016-03-28 17:45:36 -07:00
Brandon Nozaki Miller
df0c6407c1 major revisions to binary, hex and other rawBuffer sockets 2016-03-23 00:07:37 -07:00
Brandon Nozaki Miller
50f21ff857 syntax fix 2016-03-16 02:46:10 -07:00
Brandon Nozaki Miller
e53b83b6d7 allow passing false and 0 as message data 2016-03-16 02:42:21 -07:00
Brandon Nozaki Miller
23b2642041 prepped for publish 2016-01-11 14:25:48 -08:00
Brandon Nozaki Miller
bd967c7513 fixing some ref links 2016-01-11 12:28:13 -08:00
Brandon Nozaki Miller
9f1755374a fixed some formatting 2016-01-10 21:10:58 -08:00
Brandon Nozaki Miller
143e23ca4d migrating to es6 2016-01-10 20:59:40 -08:00