schlagmichdoch
bb0493d071
Make user notifications and document titles more concise.
2023-03-03 17:03:10 +01:00
schlagmichdoch
bfb5aa8546
fix overwrite method _onMessage of class RTCPeer
2023-03-03 16:36:55 +01:00
schlagmichdoch
39ca5b2d21
ws-fallback: remove all WSPeers when server connection disconnects + fix onPeerLeft
2023-03-03 13:10:14 +01:00
schlagmichdoch
d6ef5887dd
move logging of rtc message from class Peer class to overwritten method in class RTCPeer
2023-03-03 12:38:34 +01:00
schlagmichdoch
3a2d8c75f7
- restructure and unify dialogs to use less space on mobile and be clearer
...
- give user option both options "share" and "download" on mobile
- add fallback if zipper fails that downloads files individually
- fix dequeuing of message queue not possible if sending peer has left
2023-03-03 12:01:43 +01:00
schlagmichdoch
c5d0eaa034
[security] Add security number to PeerUI to make verification of peer-to-peer encryption possible.
2023-02-16 02:19:14 +01:00
schlagmichdoch
16f5711c98
fix beforeunload warning if peer on transfer
2023-02-11 11:49:32 +01:00
schlagmichdoch
b933ef151a
if devices are paired a second time, the old roomSecret is deleted upon saving the new one.
2023-02-11 00:52:37 +01:00
schlagmichdoch
414cc9aa57
if user actively disconnects from PairDrop server, disconnect all peer to peer connections immediately and do not wait for channels to close
2023-02-10 23:47:39 +01:00
schlagmichdoch
1eba7359d1
rolled back some changes to stabilize WebRTC connections
2023-02-10 23:41:04 +01:00
schlagmichdoch
616f6a6799
implement complete WSPeer as fallback if WebRTC is deactivated. Only ever use on self-hosted instances as clients need to trust the server!
2023-02-10 20:22:36 +01:00
schlagmichdoch
b8c78bccfa
try to stabilize connection and prevent remove reconnecting fallback on error
2023-02-10 18:56:13 +01:00
schlagmichdoch
b0e798b3cd
allow multiple message transfers by multiple peers simultaneously by putting them in a queue
2023-02-10 03:26:08 +01:00
schlagmichdoch
671dfa1c87
fix: process stops if image preview or thumbnail creation fails
2023-02-08 14:18:59 +01:00
schlagmichdoch
1c3a8bfe1d
remove unnecessary double signaling onPeerJoined and prevent second RTCPeer instance for same peerId
2023-02-08 04:18:39 +01:00
schlagmichdoch
c674e2c8d2
remove WSPeer completely as the implementation has never been finished and routing all traffic through the server is not desirable for public PairDrop. ([see this issue for reasons]( https://github.com/schlagmichdoch/PairDrop/issues/18#issuecomment-1416788548 )
2023-02-04 17:04:05 +01:00
schlagmichdoch
8488ce1402
fix socket is null if PWA is offline
2023-02-04 16:22:57 +01:00
schlagmichdoch
ca37331830
remove warning for removed crypto.subtle dependency
2023-01-31 21:57:00 +01:00
schlagmichdoch
a2d6832d12
prevent user from accidentally closing the window if files are transferred.
2023-01-27 01:29:35 +01:00
schlagmichdoch
d35c27aa91
revert zipping and unzipping files on transfer to minimize needed browser memory. Use fileQueue instead.
2023-01-27 01:28:10 +01:00
schlagmichdoch
1f7a43292b
fix PWA offline capability
2023-01-23 20:40:08 +01:00
schlagmichdoch
ec6bee05fd
fix error Cannot set remote answer in state stable
2023-01-23 19:53:14 +01:00
schlagmichdoch
19d7e6fecd
prevent channel from opening if connection is closed
2023-01-23 05:28:08 +01:00
schlagmichdoch
d4dcfbc1b7
After successfully creating peer to peer connection, transferring files/messages now work completely independent of the PairDrop server. Transfers are not aborted and dialogs are not closed when the client has only lost connection to the PairDrop server or when 'peer-left' but only when the corresponding peer is disconnected.
2023-01-23 04:51:22 +01:00
schlagmichdoch
d424a0294a
fix persistent peerId -> displayName if PWA
2023-01-23 00:03:26 +01:00
schlagmichdoch
88e31407cb
fix persistent peerId if PWA
2023-01-22 17:36:15 +01:00
schlagmichdoch
bf79f72741
use console.log instead of console.error if indexeddb is not available as this behaviour is expected
2023-01-22 17:34:33 +01:00
schlagmichdoch
469d3f6ec8
prevent base64ZipDialog from closing when ws disconnects
2023-01-19 15:07:58 +01:00
schlagmichdoch
d9c3d5172a
FIX add mime types to files if missing -> needed for correct sharing via share-menu on ios
2023-01-19 06:01:23 +01:00
schlagmichdoch
7936f123c2
implement File Handler API
2023-01-18 15:46:09 +01:00
schlagmichdoch
6748cc0cb4
fix bugs
2023-01-18 15:44:20 +01:00
schlagmichdoch
29735ff617
add alert if corruption of files can not be checked and add optional nginx config for http to https redirect; always show preview of first file if image;
2023-01-18 15:37:36 +01:00
schlagmichdoch
bdb9cb42d9
rewrite pasteMode activation/deactivation in PeerUI and PeersUI and add clear up PasteUI
2023-01-18 15:28:57 +01:00
schlagmichdoch
474eb9290f
small fixes and style changes
2023-01-17 14:00:01 +01:00
schlagmichdoch
24fdff8a8a
adding a second stun server provided by the openrelayproject to the RTCPeer.config
2023-01-17 11:27:07 +01:00
schlagmichdoch
5525caa766
implement file receive request with image-thumbnail-preview, share-menu on click additional to download and multiple file support by zipping file(s) to prepare for sending; add status "waiting.." and "preparing..." to UX; lock pointer-input when peer-node busy; tidy-up paste-mode deactivation
2023-01-17 10:45:29 +01:00
schlagmichdoch
bef7459019
do not hide ReceiveDialogs on disconnect
2023-01-10 16:10:46 +01:00
schlagmichdoch
7deeba161b
disconnect on navigator.connection.change
2023-01-10 14:52:39 +01:00
schlagmichdoch
3c07a4199b
implement device pairing via 6-digit code and qr-code
2023-01-10 05:07:57 +01:00
schlagmichdoch
206860c838
use openrelay server instead
2023-01-07 02:38:45 +01:00
schlagmichdoch
fe2422264a
add notification on connect
2023-01-07 01:47:47 +01:00
schlagmichdoch
62b9e4e9e4
fix peer._channel is undefined
2023-01-06 19:51:35 +01:00
schlagmichdoch
ee3d400de1
Merge branch 'fix_typo_repeat_partition' into add_device_pairing_render_node
2023-01-06 16:34:04 +01:00
schlagmichdoch
6c4b7b893a
fix reconnection _onChannelClosed()
2023-01-06 16:19:45 +01:00
schlagmichdoch
6268ac7132
only reopen connection if it exists
2023-01-06 15:46:51 +01:00
schlagmichdoch
98a6f63799
remove notification for new displayName as peerId and display name is persistent again
2023-01-06 15:09:01 +01:00
schlagmichdoch
621c525d11
readd persistent peerId via sessionStorage
2022-12-31 18:52:18 +01:00
schlagmichdoch
8dc0f1cb0c
stabilize connection
2022-12-31 18:52:18 +01:00
schlagmichdoch
6feeb6d4d9
potential fix for reconnect function
2022-12-31 18:52:17 +01:00
schlagmichdoch
0b45bdfd84
potential fix for reconnect function
2022-12-31 18:52:17 +01:00