16 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
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
799299d669 add checkConnections service 2019-08-21 17:39:00 +03:00
afrokick
252b65cc07 add eslint
fix npm audit
2019-08-21 15:14:31 +03:00
afrokick
5fa4c2df5f
Merge pull request #125 from zhou-yg/patch-1
[bug] fix connecting problem
2019-08-21 14:21:46 +03:00
afrokick
b9bc327eda fix messageHandler null deconstruction 2019-08-21 14:01:05 +03:00
Jairo
0d85c45f47
Update index.js 2019-07-02 15:32:18 +02:00
zhou-yg
62c8aa6fa1
[bug] fix connecting problem
1.register router path duplicate in 'init' function(line 16) and 'PeerServer' function (line 109)
2.app.mountpath is undefined. It will make WebSocketServer.constructor lost router path.
2019-05-28 21:12:53 +08:00
afrokick
a7bc7b03d2 fix readme
fix dc event
2019-04-11 13:30:17 +03:00
afrokick
b31d2b881d convert to lib 2019-04-10 23:44:15 +03:00
afrokick
9b15b4b4f3 fix https://github.com/peers/peerjs-server/issues/75 2019-04-01 18:33:24 +03:00
afrokick
0be4f6066c implement https://github.com/peers/peerjs-server/pull/67 2019-04-01 17:17:38 +03:00
afrokick
6f509b848c remove ips limit
refactoring errors
2019-04-01 15:41:09 +03:00
afrokick
9a89394c11 fix 2019-04-01 15:14:24 +03:00
afrokick
1f58c60ecc fix 2019-04-01 15:01:35 +03:00
afrokick
1e09fcfb64 ref 2019-04-01 14:34:59 +03:00