Commit Graph

7 Commits (283957f6414c190e741890e6aa77960c744d1c86)

Author SHA1 Message Date
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 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
2018-01-26 10:30:10 -08:00
David Kebler ab56bddd72 improved and debugged packet processing with corresponding better more exhaustive testing 2018-01-23 16:02:56 -08:00