mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 07:05:05 -04:00
34 lines
No EOL
459 B
JavaScript
34 lines
No EOL
459 B
JavaScript
class ServerConnection {
|
|
|
|
}
|
|
|
|
class Connection {
|
|
|
|
}
|
|
|
|
class WSConnection extends Connection {
|
|
|
|
}
|
|
|
|
class RTCConnection extends Connection {
|
|
|
|
}
|
|
|
|
class Peer {
|
|
|
|
constructor(serverConnection) {
|
|
this._ws = new WSConnection(serverConnection);
|
|
this._rtc = new RTCConnection(serverConnection);
|
|
this._fileReceiver = new FileReceiver(this);
|
|
this._fileSender = new FileSender(this);
|
|
}
|
|
|
|
send(message) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
class Peers {
|
|
|
|
} |