mirror of
https://github.com/MercuryWorkshop/adrift.git
synced 2025-05-13 06:10:01 -04:00
impl client/server version handshake
This commit is contained in:
parent
edd83f54f9
commit
ba77d77036
9 changed files with 114 additions and 10 deletions
|
@ -52,10 +52,12 @@
|
|||
|
||||
let showTrackerList = false;
|
||||
|
||||
function onTransportOpen() {
|
||||
async function onTransportOpen() {
|
||||
console.log("Transport opened");
|
||||
|
||||
let connection = new Connection(transport);
|
||||
// TODO: error handling here
|
||||
await connection.initialize();
|
||||
let bare = new AdriftBareClient(connection);
|
||||
console.log(setBareClientImplementation);
|
||||
setBareClientImplementation(bare);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue