David Kebler
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
2019-08-28 09:02:27 -07:00
David Kebler
3299e9125e
refactored _send in socket class
...
added authentifcation with default being a token
attach any passed client name to server side client socket
2019-08-23 15:48:39 -07:00
David Kebler
375790bfc4
Add client ID to connected client on server and remove client when it closes
2019-08-20 10:52:59 -07:00
David Kebler
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.
2019-08-20 10:52:02 -07:00
David Kebler
a332219bdd
0.2.16 truly fixed the client connect/reconnect so it works even if initially no connection was made
2019-08-14 13:31:37 -07:00
David Kebler
ccf9ab8c8a
modify default timeout to 120 seconds and add in enironment variable to allow changing it
2019-05-01 15:34:07 -07:00
David Kebler
072dd25dc4
0.2.12 update deps, clean up logging, merged in tlc branch, TLS not implemented! but had many other changes to merge
2019-04-26 10:23:30 -07:00
David Kebler
81bb898ab4
0.2.11 refactored consumer connect/reconnect to be more robust
...
emits both
also keeps track of ready state
2019-04-12 08:00:45 -07:00
David Kebler
1c3c4383c8
0.2.10 0.2.9 up the initial connect timeout to 5 mintues, and reconnect to 2 seconds
2019-03-24 11:49:00 -07:00
David Kebler
ea7610e1a0
bind close method
2019-03-17 13:51:36 -07:00
David Kebler
b587d5f2f2
0.2.7 change no host when port supplied warning, update to new logger location
2019-02-26 11:43:10 -08:00
David Kebler
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
2019-01-01 16:53:12 -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
36d1cf629f
fix file delete (unlink) so catches error uses promise
2018-05-27 13:05:38 -07:00
David Kebler
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
2018-05-24 12:28:30 -07:00
David Kebler
e2e59466be
upgrade to esm from @std/esm
2018-05-16 07:21:51 -07:00