Commit graph

23 commits

Author SHA1 Message Date
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