263 Commits

Author SHA1 Message Date
afrokick
3398d65d2d refactoring index.js 2019-12-16 11:16:43 +03:00
afrokick
c4f04b2ff8 add tests for WebSocketServer 2019-12-16 01:15:05 +03:00
afrokick
fe6f513b01 add test for messageQueue
replace setTimeout to Promised wait
2019-12-15 18:49:01 +03:00
afrokick
c05fdbbdbe add tip for gitpod 2019-12-15 15:14:36 +03:00
afrokick
2ee176e690 fix Dockerfile 2019-12-15 15:12:06 +03:00
afrokick
b9b07b0f10 add npm icons to readme 2019-12-15 14:57:27 +03:00
afrokick
3dcf09451e add test via browser step in README 2019-12-15 14:50:43 +03:00
afrokick
0bb887191d add npm install method 2019-12-15 14:45:23 +03:00
afrokick
8757815da9 update readme and changelog 2019-12-15 14:33:42 +03:00
Alex Sosnovskiy
37ee973e55
Merge pull request #140 from peers/refactoring/ts
[WIP] Convert to TypeScript
2019-12-15 14:20:45 +03:00
afrokick
7c23ed8351 fix warnings 2019-12-15 14:17:37 +03:00
afrokick
ed6379c160 update ts to 3.7.3 2019-12-15 13:48:45 +03:00
afrokick
17e0177670 fix uuid 2019-12-15 13:27:56 +03:00
afrokick
d46628067b Merge branch 'master' into refactoring/ts
# Conflicts:
#	src/models/realm.js
#	test/services/checkBrokenConnections/index.ts
2019-12-15 13:09:49 +03:00
Alex Sosnovskiy
344f203b13
Merge pull request #148 from luizbills/gitpod
Add Gitpod support
2019-12-15 13:03:51 +03:00
Alex Sosnovskiy
74f2e6aee0
Merge pull request #152 from ivelin/master
fix: replace Math.random with uuid4 for a crypto secure client ID
2019-12-15 13:02:51 +03:00
Ivelin Ivanov
61cb1517fd fix: replace Math.random with uuid4 for a crypto secure client ID generation 2019-12-13 18:23:02 -06:00
Luiz Paulo "Bills
22240081ff
add gitpod button 2019-11-08 11:06:31 -03:00
Luiz Paulo "Bills
8c48d6092a
Update .gitpod.yml 2019-11-08 10:55:59 -03:00
Luiz Paulo "Bills
f519bf4903
Create .gitpod.yml 2019-11-08 10:50:58 -03:00
Eden Tyler-Moss
5ad788c419 Removed unneeded console.error. 2019-10-23 03:28:38 +01:00
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
ae5452b2e1
Update README.md 2019-10-08 15:30:35 +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
Eden Tyler-Moss
910bf3f674 Changed to ES6 import syntax. 2019-10-03 12:01:56 +01:00
Eden Tyler-Moss
8409552275 Added NPM installation instructions. 2019-10-03 11:54:53 +01:00
stan
94616d6e35 enabled support for node.js engines > 10 2019-09-09 21:24:59 +02:00
afrokick
42a626629b add eslint for ts 2019-08-23 16:47:34 +03:00
afrokick
1daa092eea fix tests 2019-08-23 16:04:19 +03:00
afrokick
dd0b60416e ref 2019-08-22 20:59:55 +03:00
afrokick
eda26cecd7
Merge pull request #139 from peers/feature/brokenConnectionDetection
add checkConnections service
2019-08-21 17:52:32 +03:00
afrokick
799299d669 add checkConnections service 2019-08-21 17:39:00 +03:00
afrokick
8bfd385eb0 add 0.3.0 section to changelog 2019-08-21 15:25:40 +03:00
afrokick
8c00c0decd update deps 2019-08-21 15:19:03 +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
3069aa9dd3
Merge pull request #138 from peers/fix/messageHandler
fix messageHandler null deconstruction
2019-08-21 14:04:10 +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
Daniel Bulant
ac3e717c32 Fix peerjs command
There was a typo, path mypapp instead of myapp
2019-06-19 15:09:05 +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
948a0b8ff2 remove host arg because not used 2019-04-11 17:35:47 +03:00
afrokick
db30a334c0 add host arg to app 2019-04-11 17:22:24 +03:00
afrokick
54d08f4ee7 fix optimist's args 2019-04-11 13:43:15 +03:00
afrokick
ecd849f246 fix docker file 2019-04-11 13:36:14 +03:00
afrokick
2a607c25a5
Merge pull request #120 from peers/refactoring/convertToLib
Refactoring: convert to lib
2019-04-11 13:30:37 +03:00
afrokick
a7bc7b03d2 fix readme
fix dc event
2019-04-11 13:30:17 +03:00
afrokick
f229db57b1 remove package-lock from repo 2019-04-10 23:46:10 +03:00
afrokick
b31d2b881d convert to lib 2019-04-10 23:44:15 +03:00
afrokick
438d512557
Merge pull request #118 from peers/refactoring/es
Refactoring: replace lib with basic app
2019-04-01 21:50:06 +03:00