Commit Graph

15 Commits

Author SHA1 Message Date
decentral1se 00a1452cfc
Migrate to ssbc urls (#336)
* fix: ssbc urls

Closes https://github.com/ssbc/go-ssb-room/issues/332

* fix: go-ssb-refs API changes

* test: go-ssb-refs API changes

Co-authored-by: decentral1se <cellarspoon@riseup.net>
Co-authored-by: André Staltz <andre@staltz.com>
2022-11-07 11:18:13 +02:00
boreq ea9b22cfa7 Add an RPC endpoint listing all members
Currently an RPC endpoint which lists only the connected members is
available. A list of all members, even those who are offline, is
available only using the web dashboard. This pull request adds an RPC
endpoint which lists all members of the room.

This new endpoint can be used to augment SSB clients with extra
information about the rooms. For example friends who are room members
can be displayed in room-related settings or information about shared
rooms can be displayed in user profiles.

The new endpoint is a source endpoint called ["room", "members"]. Source
endpoint was selected to make it possible to return multiple smaller
responses instead of one large response - an async endpoint could
struggle to return the list of all members in case of larger rooms. Each
response carries a list of member objects. Currently the implementation
naively returns one member per response message but that can be adjusted
in the future.

Currently the request takes no arguments but extra options could be
added in the future.

Currently member objects only have one property: their id. This can be
extended in the future.
2022-11-01 13:30:00 +02:00
Henry a249fd8bee fix SPDX headers and add reuse API badge 2021-10-08 14:39:31 +02:00
Henry 4d3610e2fb prepare v2 release 2021-05-31 14:51:05 +02:00
Henry 3e53570638 dependency updates
* use LICENSEd version of nocomment
* use forked kitlog
* cleanup of various dependencies
2021-05-25 12:40:00 +02:00
Henry 85ee99a1b2
remove room.announce and room.leave from muxrpc (#223)
* remove room.announce and room.leave from muxrpc

those were confusion and implied some use beyond just opening
tunnel.endpoints/room.attendants (which implicitly does what
tunnel.announce does).

updates #89
2021-05-21 15:52:04 +02:00
Henry e7c20bcd5d add room.attendants implementation
updates #89
2021-05-17 16:06:09 +02:00
Henry 3fae8a200a change handler registration 2021-05-17 15:31:29 +02:00
Henry 27fc5713cc change isRoom to have metadata
fixes #58
2021-05-17 12:24:29 +02:00
Henry 984f3dfc87 remove peers from the room when the muxrpc sessions ends
fixes #173
2021-04-21 11:56:33 +02:00
cblgh faae7c0324 get started with privacy modes, parse -mode flag 2021-04-06 16:52:51 +02:00
Henry 757b14d419 Apply suggestions from code review
Co-authored-by: Alexander Cobleigh <cblgh@cblgh.org>
2021-03-16 08:49:58 +01:00
Henry 8335a74c0e add test for alias registration over muxrpc 2021-03-16 08:49:40 +01:00
Henry 033efe5145 muxrcp: alias.register
* re-work muxrpc handler registration
* update muxrpc tests
2021-03-16 08:49:18 +01:00
Henry 23c7e02c45 rename muxrpc packages 2021-03-10 16:57:49 +01:00