8 Commits

Author SHA1 Message Date
Eden Tyler-Moss
2eb7f9cfb1 Generate ID function passed in options object. Updated tests. 2020-01-31 10:11:49 +00:00
Eden Tyler-Moss
5ad788c419 Removed unneeded console.error. 2019-10-23 03:28:38 +01:00
Eden Tyler-Moss
2552e9d5f1 Added optional parameter to use a custom function to generate IDs.
The third parameter passed to PeerServer or ExpressPeerServer can
optionally be a function that returns any string value, which will be
used as the client ID. Checking whether the ID is already taken is not
to be handled by the function.

For instance:

ExpressPeerServer(,,() => {
  return 'abc';
})
2019-10-07 17:55:53 +01:00
afrokick
252b65cc07 add eslint
fix npm audit
2019-08-21 15:14:31 +03:00
afrokick
b31d2b881d convert to lib 2019-04-10 23:44:15 +03:00
afrokick
5f3774fe44 fix tests 2019-04-01 17:09:22 +03:00
afrokick
d559ae50c6 fix auth 2019-04-01 14:45:37 +03:00
afrokick
1e09fcfb64 ref 2019-04-01 14:34:59 +03:00