Commit Graph

  • 09da08b548 0.3.3 update deps master David Kebler 2020-07-26 15:32:04 -0700
  • b856710a3b 0.3.2 catch no consumer on send David Kebler 2020-07-12 18:28:19 -0700
  • 9528e71abb 0.3.1 added 100ms delay to connection packet push to avoid issue where connection packet is not sent/received David Kebler 2020-03-24 14:13:37 -0700
  • 70fee6fc7c 0.3.0 bumping to .3 with upcoming 3-2020 deployment of lighting system. no apparent bugs David Kebler 2020-03-15 14:32:35 -0700
  • b454ef620e 0.3.0 bumping to .3 with upcoming 3-2020 deployment of lighting system. no apparent bugs v0.3.0 David Kebler 2020-03-15 14:32:35 -0700
  • 0d578958a8 0.2.33 refactor push, put in more send/write guards for closed stream David Kebler 2020-02-10 21:38:18 -0800
  • 42d4b54008 0.2.31 support for multiple conPackets as an array David Kebler 2020-01-18 22:34:38 -0800
  • 65169e3ded 0.2.30 socket-class.js now emits 'socket' on socket listening state added stop method to stop socket listening manually. (no remote access via base yet) added .name and .id to consumer from either packet props or packet data prop consumer.js don't allow passed options mutation add .name prop merge in passed data option prop into authentication packet sent to socket David Kebler 2020-01-14 13:38:24 -0800
  • 8a4fdf067c 0.2.29 socket: removed all 'client' names and replaced with 'consumer' switched to using MAP for holding consumers incoming consumer includes passing opts.data for passing consumer specific information to socket consumer: supports opts.data for passing to socket updated examples accordingly David Kebler 2020-01-06 23:01:34 -0800
  • 70e16fa08d 0.2.28 Prevent epipe error exception on socket stream write David Kebler 2019-12-18 18:14:21 -0800
  • d7fc89cafb 0.2.27 fix initial success handler that had the old event David Kebler 2019-12-08 14:52:46 -0800
  • ba112c484e 0.2.26 refactor the connection events, status is now log, connection event is now connection:socket or connection:consumer 'online' to just 'connected' David Kebler 2019-12-05 14:42:41 -0800
  • dcd178de7b 0.2.25 David Kebler 2019-12-02 15:11:26 -0800
  • 2314670c04 0.2.24 refactor consumer for more robust error/disconnect handling add online/offline/pause/resume to json stream removed bad 'connection' emits from socket-class as that event is already used by actual consumer connections. David Kebler 2019-12-02 14:20:57 -0800
  • e29b4ba838 0.2.23 David Kebler 2019-11-27 14:32:54 -0800
  • 18a65b42c5 0.2.22 add active getter emit status active when connect state changes David Kebler 2019-11-21 09:35:09 -0800
  • 7502902a51 0.2.21 add ability to set the default return command as option defaultReturnCmd add consumer-connection emits change name in connection handler to consumer from socket add getClientIndex and getClient to api methods David Kebler 2019-09-13 18:59:22 -0700
  • 5f28baaa74 0.2.20 emit status events in consumer refactor listen method into a handler David Kebler 2019-09-08 19:49:05 -0700
  • 6862d912b2 refactored create to better handle the listening and promise resolution David Kebler 2019-08-29 13:42:28 -0700
  • 8078831971 0.2.19 register authenticator added to consumer and socket default consumer authenticator looks for token in environment or opts or sets to 'default' default socket authenticator looks for token validator method add and remove token methods default token validator method just checks sent token against list can register alt token validator improved authenticate function to handle fail reason and anonymous connect David Kebler 2019-08-28 09:02:12 -0700
  • 3299e9125e refactored _send in socket class added authentifcation with default being a token attach any passed client name to server side client socket David Kebler 2019-08-23 15:48:39 -0700
  • 375790bfc4 Add client ID to connected client on server and remove client when it closes David Kebler 2019-08-20 10:52:59 -0700
  • 3bf375c8fd 0.2.18 Major refactor of consumer/client. Initial connect with promise resolution now separate from listening and reconnect handling. Added server ping and conusmer ping monitoring to know when to try a reconnect. Other errors will give a reconnect as well. David Kebler 2019-08-19 17:57:10 -0700
  • db3e2e8054 0.2.17 Update Deps David Kebler 2019-08-14 14:06:26 -0700
  • a332219bdd 0.2.16 truly fixed the client connect/reconnect so it works even if initially no connection was made David Kebler 2019-06-26 08:54:35 -0700
  • 47fa6380bf 0.2.14 David Kebler 2019-05-01 15:34:18 -0700
  • ccf9ab8c8a modify default timeout to 120 seconds and add in enironment variable to allow changing it David Kebler 2019-05-01 15:34:07 -0700
  • 456b9568ff 0.2.13 add better error handling to avoid reconnrest execpetion David Kebler 2019-04-28 09:58:15 -0700
  • 072dd25dc4 0.2.12 update deps, clean up logging, merged in tlc branch, TLS not implemented! but had many other changes to merge David Kebler 2019-04-26 10:14:57 -0700
  • cec399ecc5 0.2.12 update deps, clean up logging tls David Kebler 2019-04-26 10:14:57 -0700
  • 81bb898ab4 0.2.11 refactored consumer connect/reconnect to be more robust emits both also keeps track of ready state David Kebler 2019-04-11 20:57:45 -0700
  • 1c3c4383c8 0.2.10 0.2.9 up the initial connect timeout to 5 mintues, and reconnect to 2 seconds David Kebler 2019-03-24 11:46:00 -0700
  • fbff2796c0 0.2.8 David Kebler 2019-03-17 13:52:08 -0700
  • ea7610e1a0 bind close method David Kebler 2019-03-17 13:51:36 -0700
  • b587d5f2f2 0.2.7 change no host when port supplied warning, update to new logger location David Kebler 2019-02-14 14:01:14 -0800
  • 609c2b51ca 0.2.3 added tls version of socket David Kebler 2019-01-30 20:14:00 -0800
  • 7f8703e9c4 0.2.2 David Kebler 2019-01-25 20:34:00 -0800
  • 9ce3226f93 set up socket/server for TLS option using command Socket Class extending either plain or tls server class David Kebler 2019-01-05 15:16:13 -0800
  • 63beca4199 Added server push method. Pushes to any/all connected clients with id='pushed' which clients can listen for Add jsdoc documenation to source and did a few experiments with doc generators David Kebler 2019-01-01 16:53:12 -0800
  • 6a8c2b1fca fixed initial timeout on connect rejection. add in new option conPacket for pushing a packet to any connecting consumer from a socket/server David Kebler 2018-07-31 09:45:32 -0700
  • 01c4756e26 with keepAlive set (by default) if the socket terminates the consumer will attempt to reconnect indefinitely David Kebler 2018-07-30 19:07:03 -0700
  • 36d1cf629f fix file delete (unlink) so catches error uses promise David Kebler 2018-05-27 13:05:38 -0700
  • 949bd5b3b1 add client tracking on server side and push notification processin to both. Pushed packets have _header.id of 'pushed' and server has new push method David Kebler 2018-05-24 12:28:30 -0700
  • e2e59466be upgrade to esm from @std/esm David Kebler 2018-05-16 07:21:51 -0700
  • 1f45aec2fa refactor options processing, remove opts.np David Kebler 2018-03-02 08:34:10 -0800
  • 283957f641 fix bug with incoming packet cloning David Kebler 2018-02-23 21:17:37 -0800
  • 19a2b6a150 updated dev dependencies David Kebler 2018-02-23 13:45:22 -0800
  • 8dd5f05582 change imports to npm from local paths David Kebler 2018-02-17 18:26:17 -0800
  • 5ada8cd43a cloned incoming socket side packet immediately before processing and copying over header. David Kebler 2018-02-14 13:26:35 -0800
  • 450a85d8b9 switched to _header property for packet id added sender and responder info to header _header can now be used for anything specifically socket related Fixed bug where socket must create a copy of processed packet to avoid issue when coder returns the original packet just altered from the packet processor David Kebler 2018-02-13 13:51:58 -0800
  • 28768c8007 refactor send/write so send is async and will wait for reponse from socket. write now makes sure to drain before allowing another packet write refactored tests with new await send returning processed packet. David Kebler 2018-02-12 14:41:06 -0800
  • d3b979b1fd catching errors in json stream serialize added environment variable SOCKETS_DIR for socket directory David Kebler 2018-02-11 19:58:22 -0800
  • 751491ee00 moved log options to top refactor passed int opts (path no longer passed separately) removed .packet property moving process to root property and thus _packetProcess is private method for packet processing re-export in index both Socket and Consumer as named and as props of default refactor test and examples accordingly David Kebler 2018-02-03 13:33:25 -0800
  • bbc29317ee swtich to pino logging with uci-logger module David Kebler 2018-02-01 16:58:17 -0800
  • 40d9565bf3 fix tcp options handling error add id property use _ for private methods David Kebler 2018-01-31 11:30:32 -0800
  • 3beb53d2a3 removed context processing from modules (will be done in uci-base) added connection retry for consumer when connection to socket fails refactored tests and examples to suit Got a start on readme file David Kebler 2018-01-30 16:59:57 -0800
  • 2d38eab240 alter to passed options to class to better support both tcp and unix sockets with same class David Kebler 2018-01-29 21:38:46 -0800
  • bb0ca93e43 make the class instance the default context for packet commands David Kebler 2018-01-28 12:33:26 -0800
  • 1b846c4753 added packet property to hold processor and both local and added context in which to process packets for both socket and consumer changed tests accordingly David Kebler 2018-01-25 18:07:45 -0800
  • ab56bddd72 improved and debugged packet processing with corresponding better more exhaustive testing David Kebler 2018-01-23 16:02:56 -0800
  • 0f82f4aedd fix app processor property that wasn't getting set David Kebler 2018-01-22 12:18:34 -0800
  • 1fe0d71e0e replaced stream processing with more robust processing using buffer length using new JsonStream class David Kebler 2018-01-21 19:55:47 -0800
  • 9d6a562cda improved/added example files David Kebler 2018-01-20 14:30:21 -0800
  • c7d25521e8 added dual consumer testing of socket catch if consumeris already connected and continue David Kebler 2018-01-20 13:52:07 -0800
  • 4b13cef73a streamline class method binding and setting of packet processing function David Kebler 2018-01-19 20:43:16 -0800
  • 57324c616c added chunck processing into JSON packets using newline delimiter fixed left unix socket file bug improved some defaults handling added custom packet processing for tcp vs unix David Kebler 2018-01-18 21:21:06 -0800
  • f0c6e96d02 added option for tcp socket so now module is just uci-socket. No authentification nor https at this point David Kebler 2018-01-16 12:43:36 -0800
  • 2b14508d6f added in test, passing. Added in bunyan logger David Kebler 2018-01-13 20:46:14 -0800
  • ae72d3af02 added handshaking from socket before finishing consumer connection, fixed async flow control issues, added in mocha test, improved passing of external app for packet processing David Kebler 2018-01-10 15:03:32 -0800
  • e5167c3995 basic working socket-consumer modules with no handshaking but passing json objects David Kebler 2018-01-08 13:06:01 -0800
  • 0290ec99a7 changing to esm .mjs module from .js using @std/esm David Kebler 2017-12-22 11:15:46 -0800
  • c3e94b465e initial commit David Kebler 2017-12-21 15:47:42 -0800
  • 6b9b399ee5 initial commit David Kebler 2017-12-21 15:47:14 -0800