Commit Graph

15 Commits (609c2b51cab84efe8cd54c1fe8af0cdc10fbe0f4)

Author SHA1 Message Date
David Kebler 9ce3226f93 set up socket/server for TLS option
using command Socket Class extending either plain or tls server class
2019-01-05 15:16:13 -08:00
David Kebler 6a8c2b1fca fixed initial timeout on connect rejection.
add in new option conPacket for pushing a packet to any connecting consumer from a socket/server
2018-07-31 17:17:39 -07:00
David Kebler 01c4756e26 with keepAlive set (by default) if the socket terminates the consumer will attempt to reconnect indefinitely 2018-07-30 19:07:03 -07:00
David Kebler e2e59466be upgrade to esm from @std/esm 2018-05-16 07:21:51 -07:00
David Kebler 1f45aec2fa refactor options processing, remove opts.np 2018-03-02 08:34:10 -08:00
David Kebler 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
2018-02-13 13:51:58 -08:00
David Kebler 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.
2018-02-12 17:10:41 -08:00
David Kebler 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
2018-02-03 14:13:49 -08:00
David Kebler bbc29317ee swtich to pino logging with uci-logger module 2018-02-01 17:26:27 -08:00
David Kebler 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
2018-01-30 17:49:31 -08:00
David Kebler 0f82f4aedd fix app processor property that wasn't getting set 2018-01-22 12:18:34 -08:00
David Kebler 9d6a562cda improved/added example files 2018-01-20 14:30:21 -08:00
David Kebler 2b14508d6f added in test, passing. Added in bunyan logger 2018-01-13 20:46:14 -08:00
David Kebler 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 2018-01-10 20:33:39 -08:00
David Kebler e5167c3995 basic working socket-consumer modules with no handshaking but passing json objects 2018-01-08 13:06:01 -08:00