da75d1a4680.5.4 Full working removeSocket, removes also correpsonding s or c observers
David Kebler
2020-07-26 16:51:37 -0700
cf1182d8050.5.3 update deps
David Kebler
2020-07-21 13:54:48 -0700
eee7a8f11e0.5.2 return handle to newly added socket instead of just init function
David Kebler
2020-07-04 10:14:18 -0700
93a5c72e5f0.5.1 refactor send method to streamline all cases into one. Can accept name or array of consumer names to send otherwise it's all. do some vetting of the packet to be processed to avoid processing a bad packet set ready and state log levels for pushed or sent ready packets for easier debugging
David Kebler
2020-03-24 14:22:32 -0700
31747cc3730.5.0 bumping in anticipation of 3-2020 deployment of light code working fine, no bugs cleaned code refactored socketsInit and how it handles the ready object, delays 100ms to avoid pushing/send issue when socket is closed abruptly refactored the observer names to add a suffix be more clear like <listening> for sockets and <inbound> and <outbound> for consumers add better examples two consumers and socket example and duplex example
David Kebler
2020-03-15 15:15:43 -0700
b7a20230bb0.1.51
David Kebler
2020-02-21 18:15:21 -0800
f4e0a8396a0.1.50
David Kebler
2020-02-21 12:31:56 -0800
55d93bf7d80.1.49 refactor push method now allows specification of sockets and consumers has ready push for change and connect but they are buggy
David Kebler
2020-02-10 21:33:54 -0800
709b3e0fbc0.1.41 Fix bug in consumerConnected Method
David Kebler
2020-01-21 18:38:11 -0800
ddd7556c3f0.1.40 clear console.logs
David Kebler
2020-01-18 22:29:35 -0800
80286a2e4f0.1.39 processing.js add ready command to consumer for pushes emitting entire packet base.js added ready all subcriber that sends/push when ready adds ready packet to conPackets for all s socket types change observer names to include sufixes :socket, :consumer, :process, :device add method to easily create an observer of connecting consumer(s)
David Kebler
2020-01-16 17:21:58 -0800
a6d928bf560.1.38 processing.js added default ready command for socket removed arrow functions from socket cmd functions must Always be regular functions for setting context base.js better validation and defaults for options to registerSocket add by default a ready observer for when socket starts listening
David Kebler
2020-01-14 09:20:44 -0800
a47144606a0.1.37 base: add ready observer class instance adds a ready observer for each consumer (only) registered refactored default namespace processing a bit refactored _packetProcess the default/main processor now can register before,command, and after processors uses a single _process function to remove near reptition does a better job of maintaining/merging the packet from step to step processing: change processor to cmdProcessor refactor default consumer processing
David Kebler
2020-01-06 23:39:29 -0800
741823cce40.1.32 change buble up events to 'connection:socket' and 'connection:consumer'
David Kebler
2019-12-05 15:32:14 -0800
2d552bc6c10.1.31 refactor init to socketsInit support old init registerSocket now only registers a socket it does not initialize, addSocket now calls this for backwards compatibility added active getter to all sockets/consumers so now ready getter returns complete active state of all sockets socketsInit only attempts to init non active sockets so can be called multiple times add some more helpers getSocketsFilter, getConsumers, getSocketInit push now supports push to specific sockets/servers instead of just all which is the default
David Kebler
2019-11-21 09:30:12 -0800
ec311b51df0.1.30 add consumer connection bubble up listener for each socket add mqtt s vs c option
David Kebler
2019-09-16 18:05:03 -0700
23ea81c9d90.1.29 add default return command for socket/servers add generic client and ack sockect server examples
David Kebler
2019-09-13 19:05:22 -0700
61df3593b10.1.28 improve error handling of otherwise unhandled errors at processor call bubble up 'pushed' events to base instance from underlying sockets add error command to any packets returning packet.error to a consumer/client
David Kebler
2019-09-11 21:35:08 -0700
10c4f4a1460.1.27 add bubble up 'status' event on every socket add in latest websocket client example
David Kebler
2019-09-08 20:09:36 -0700
1b3d5fceb7refactored socket initialization to better catch and emit errors and remove offending sockets will now emit 'error', 'warn', 'fatal' when needed so instance can track and track easier and take action (like notification) sockets will bubble these up now.
David Kebler
2019-08-29 13:41:32 -0700
3bf01101640.1.26 refactored amend methods added transport validation changed default name spaces to all start with _ to avoid accidential namespace issues refactored examples to showcase all possibilities with a four in one (fio) example refactored ha hooks added matching websocket client all works changes made by one socket are pushed to all sockets where they do their updates including home assistant added a home assistant package file including lovelace yaml for matching HA interface.
David Kebler
2019-08-27 20:10:44 -0700
21718d39980.1.25 Update all deps, add home assistant mqtt example
David Kebler
2019-08-15 13:30:56 -0700
f9503dcbf90.1.24 updated socket again
David Kebler
2019-05-02 06:37:03 -0700
e1859bd1e20.1.23 update socket
David Kebler
2019-05-01 15:43:10 -0700
c1d35f7c0f0.1.22 bump because of change in uci-socket
David Kebler
2019-05-01 15:37:52 -0700
903d9072010.1.21 add info to ack package so one can see it's just the default ack update socket deps for changes in error handling
David Kebler
2019-04-28 10:00:08 -0700
ea1342272e0.1.20 changed default commands handling, removed _default namespace changed s and c name spaces to use ._c, and _s as default name spaces amend commands work with above ._c and ._s props changed .socket to ._socket to avoid namespace issues with instances using .socket. Instances should use the getSocket method! copied host and port options to connect. for mqtt socket to make setting those more standard cleaned up logging Add hooking for before send, and before and after process Improved/cleaned preempting default processing
David Kebler
2019-04-26 11:05:10 -0700
6da51d453f0.1.19 add ack to default socket commands, add socketsListen and consumersListen and private _eventListen methods
David Kebler
2019-04-20 16:57:44 -0700
3ab37ae6940.1.18 updated of uci socket
David Kebler
2019-03-24 11:46:08 -0700
1359aa7d310.1.17 add removeSocket method, add final catch of all packet processing errors.
David Kebler
2019-03-17 13:45:19 -0700
0a86774b170.1.16 update utility dependencies, improve the fio example so mqtt work correctly
David Kebler
2019-02-14 14:01:21 -0800
a5fa20b74adependency updates
David Kebler
2019-02-14 13:03:54 -0800
759949fb51Refactored init method and added an "addSocket" method called from there. This allows setting up sockets at construction or later at runtime via same call to addSocket.
David Kebler
2019-01-01 16:39:08 -0800
20d2eb09ccfix adding root namespace to lookups
David Kebler
2018-05-28 14:18:20 -0700
10077e207bbegan documentation in readme by default removed root namespace checking must now set useRootNS to true to access command functions there. This to avoid issuess like an 'on' function clashing with an emitter listerner.
David Kebler
2018-05-25 14:39:48 -0700
ea8253f4b0added in mqtt as socket type refactored with addSocket and initSocket for individual sockets now can do runtime socket addition after init
David Kebler
2018-05-20 15:44:31 -0700
04268d2b9crefactor for allowing dynamic addition of sockets add websocket (listener) to socket transports improved integration of mqtt transport with topic being translated to cmd and vice versa
David Kebler
2018-05-16 11:17:38 -0700
78bcf3009aupdate to esm from @std/esm
David Kebler
2018-05-16 07:08:14 -0700
5a0af4d75eadd mqtt client as option to uci-base with uci-mqtt
David Kebler
2018-04-05 15:35:29 -0700
df9a879fefadded logging
David Kebler
2018-03-02 08:35:25 -0800
2e07dab28dadd bindFuncs method for binding a whole module of functions to the base instance (this) or a given call site update deps
David Kebler
2018-02-17 18:23:38 -0800
e6774301c2flop send to have name first then packet
David Kebler
2018-02-13 22:31:02 -0800
d0173c045fWith changes in socket module now send is async and returns the response from the socket.
David Kebler
2018-02-13 14:19:18 -0800
b938647efeimproved namespace handling and added transport namespacing added / delimiter to command/subcommand
David Kebler
2018-02-06 18:30:00 -0800
ddd81ea671refactored processing and packet command function lookup based on priortized namespaces. Packets can now have subcommands by use using . or : which will look in sub keys for the command sub function
David Kebler
2018-02-05 22:05:38 -0800
e5059368a9changed sockets options now can add as many as you want of either type and transport improved socket packet processing call now binds this and name of socket that received packet for processing single common processor for all packets incoming (either consumer or socket) default processing splits into socket or consumer default processing has calls looking for packet cmd functions before returning error packet 1. Added Namespace // TODO 2. A Pariticular Sockect 3. Root of instance 4. The socket type and transport //TODO 5. The socket type there are helper functions for adding cmd functions to any of these save the root instance we you can add directly.
David Kebler
2018-02-04 14:18:21 -0800
8c61ec854drefactored adding sockets so as many sockets of any type and transport can be added
David Kebler
2018-02-02 14:09:52 -0800
51986fbcc7fix registerpacketcontext add generating and id when one not given
David Kebler
2018-01-31 17:05:06 -0800
9679f61aaemoved default processing to constructor push creates and connects to array and use promise.all cleanup amend and register functions alter send function and add sendTCP and sendIPC
David Kebler
2018-01-30 21:12:38 -0800
3c1340baf0fixed separation of packet properties for each socket type when customizing add amendPacket.. and changed registerPacket to accept single type changes
David Kebler
2018-01-29 21:51:13 -0800
a83646c4f6refactor base so it works with latest uci-socket four-in-one example working make Base instance (this) the default context for all socket packet commands
David Kebler
2018-01-27 23:20:33 -0800
3015798068Nearly functional uci base module supports one each unix tcp sockets and clients in any combination with default and custom packet processing
David Kebler
2018-01-18 21:32:07 -0800
c3e94b465einitial commit
David Kebler
2017-12-21 15:47:42 -0800
6b9b399ee5initial commit
David Kebler
2017-12-21 15:47:14 -0800