Jonas Gloning
5e3dedcd72
Merge pull request #292 from redexp/master
2023-01-06 10:24:23 +01:00
Sergii KLiuchnyk
0d0cf63133
change import
to import type
2023-01-06 11:09:48 +02:00
Jonas Gloning
29394dea5e
fix: the server could crash if a client sends invalid frames
2022-11-17 21:04:19 +01:00
Jonas Gloning
3165d77f60
refactor(types): MyWebSocket
resulted in wrong type hints
...
.
2022-11-17 21:04:02 +01:00
Sergii KLiuchnyk
cb567c11bf
revert as it was
2022-11-07 11:22:18 +02:00
Sergii KLiuchnyk
e5c4a1b8f6
type for ws server options
2022-11-07 11:14:27 +02:00
Sergii KLiuchnyk
077260a3a4
createWebSocketServer option
2022-11-01 13:06:11 +02:00
Jonas Gloning
d900145901
feat: remove deprecated XHR fallback
...
BREAKING CHANGE: Requires PeerJS >= 1.0
2022-10-30 12:48:26 +01:00
Jonas Gloning
5d882dd0c6
perf: use the builtin UUID generator for Peer ids instead of the uuid
module
2022-10-29 21:56:44 +02:00
Sergii Bliznichenko
e2854ca9b1
add peerWs emit
2022-10-03 14:02:07 +03:00
Sergii KLiuchnyk
a77de706c7
added peerWs to app, added ws config
2022-09-30 12:25:23 +03:00
Sergii Kliuchnyk
80237305b7
Update instance.ts
2022-09-30 11:57:29 +03:00
Sergii Kliuchnyk
7deac0d07e
test
2022-09-30 11:55:49 +03:00
Sergii Kliuchnyk
8695256271
add peerWs to app
2022-09-30 11:41:38 +03:00
afrokick
23a037c7d3
add test
...
fix ssl options #230
2020-11-28 10:33:44 +03:00
brunobg
24cb041082
Allows SNICallback instead of hardcoded key/cert
...
This updates the previous PR https://github.com/peers/peerjs-server/pull/219/ with the current code. It solves #209 , allowing ssl options to use SNICallback instead of only a hardcoded key/cert pair. @afrokick I saw you accepted a few PRs this week, any chance this once can be included too? Thanks
2020-10-14 10:20:31 -03:00
afrokick
ef7e79f99f
fix eslint errors
2020-10-10 14:19:56 +03:00
Robin Millette
aa2be8063e
Add host option.
2020-06-07 10:15:51 -04:00
Robert Rößger
a72e4fc60e
fix for #170 windows paths
2020-03-29 23:44:24 +02:00
afrokick
b3f223c51f
fix ExpressPeerServer when mount on custom path
2020-03-23 19:51:18 +03:00
afrokick
b9dbb6d678
fix issue #165
2020-03-23 15:09:37 +03:00
afrokick
0a296aba07
add README for HTTP API
2020-03-22 00:28:50 +03:00
afrokick
86c2c65db7
change defaultConfig - set path to /
...
fix declaration file
2020-03-20 04:24:33 +03:00
afrokick
813f7aaec8
update changelog
...
fix package name in README
2020-03-19 23:35:59 +03:00
Alex Sosnovskiy
f3bb222609
Merge pull request #157 from ajmar/master
...
(feat): Allow passing in custom client ID generation function.
2020-03-19 23:11:46 +03:00
afrokick
a956168f55
fix issue with expire messages
...
bump version to 0.3.1
2020-03-11 11:02:32 +03:00
Eden Tyler-Moss
fdc57ba587
Fixed syntax error. (Made genRandomId optional).
2020-01-31 11:46:31 +00:00
Eden Tyler-Moss
ef651a9c7e
Resolved merge conflicts, updated README.
2020-01-31 11:39:19 +00:00
Eden Tyler-Moss
2a5d0b9cc3
Fixed breaking syntax error with genRandomId function selection.
2020-01-31 10:34:35 +00:00
Eden Tyler-Moss
2eb7f9cfb1
Generate ID function passed in options object. Updated tests.
2020-01-31 10:11:49 +00:00
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
7c23ed8351
fix warnings
2019-12-15 14:17:37 +03:00
afrokick
17e0177670
fix uuid
2019-12-15 13:27:56 +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
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
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
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