about summary refs log tree commit diff
path: root/assets/src/network/channel/share.ts
blob: f93e8cb774df83d4128606ea6d2c9347624e40b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
import requests from "../../stores/requests";
import type { Connection } from "./connection";
import { joinShareChannel } from "./socket";

export async function startShare(connection: Connection) {
    const shareChannel = await joinShareChannel(
        connection.socket,
        connection.token
    );
    connection.channel = shareChannel;
}