Connect from the web page sort of works again.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4023 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-11-09 02:15:33 +00:00
parent 6ba41f03da
commit 241dfdb90e
2 changed files with 4 additions and 1 deletions

View File

@ -30,6 +30,9 @@ tfrpc.register(async function getBroadcasts() {
tfrpc.register(async function getConnections() {
return ssb.connections();
});
tfrpc.register(async function connect(token) {
await ssb.connect(token);
});
tfrpc.register(async function closeConnection(id) {
await ssb.closeConnection(id);
});