4 Commits

Author SHA1 Message Date
Eden Tyler-Moss
e5c7ab517f Fixed bug where using the original randomId function would break. 2019-10-23 03:26:47 +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
9b15b4b4f3 fix https://github.com/peers/peerjs-server/issues/75 2019-04-01 18:33:24 +03:00
afrokick
5f3774fe44 fix tests 2019-04-01 17:09:22 +03:00