Commit Graph

39 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
Benjamin Steinwender 6f5edbaa43
Fix alias generation (#294)
* added test
* fix missing domain
2022-01-18 10:31:01 +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 9ee8c47ee8 add package level documentation for internal/broadcasts 2021-05-18 15:20:36 +02:00
Henry 939e7c1aaa
Apply suggestions from code review
Co-authored-by: Alexander Cobleigh <cblgh@cblgh.org>
2021-05-18 15:20:18 +02:00
Henry 89d3881258 add slicker attendants broadcaster 2021-05-17 15:40:47 +02:00
Henry ec4edcccbc rename broadcast types 2021-05-17 15:40:33 +02:00
Henry c991e0831f add a test 2021-04-23 08:55:37 +02:00
Henry 9b4804b98e dont allow upercase chars in aliases (fix #192) 2021-04-23 08:55:37 +02:00
Henry 1a6d027292 Apply suggestions from code review
Co-authored-by: Alexander Cobleigh <cblgh@cblgh.org>
Co-authored-by: André Staltz <andre@staltz.com>
2021-04-20 18:10:28 +02:00
Henry 940cd2b3d1 Fix ssb-ws connections
The landing path (/) can now also be used as a websocket endpoint.
This enables use of the room server with ssb-browser-demo and similar
applications that can't use TCP connections.

also pin WIP muxrpc branch (fix-stupid-timeout)
2021-04-20 18:10:26 +02:00
Henry 52ec94e878 fix link generation for alias registration
fixes #160
2021-04-19 15:00:35 +02:00
Henry d1d108b9b7 Add support for invite consumption via JSON 2021-03-29 15:53:30 +02:00
Henry c13741d4b8 integrate stringer dependency 2021-03-29 15:42:32 +02:00
Henry a62ad21165 integrate counterfeiter dependency 2021-03-29 15:33:58 +02:00
Henry 921626b829 move NetworkInfo to network package
... and implement MultiserverAddress() there.
2021-03-29 12:29:01 +02:00
Henry 1170275816 rename ClientRequest to ClientPayload 2021-03-26 17:58:03 +01:00
Henry 3db376b549 some comments 2021-03-26 13:45:21 +01:00
Henry 3b092885fb cleanup 2021-03-26 13:45:21 +01:00
Henry 4325e0fb3d various fixes
* fill in sid and sc
* fix logout
* cascade member removal
* fix links
* trim suffix from signature
* fix /sse/login link
* fix sse links and filenames
* fix logout
* fix typos
* fix test compilation
* fix bridge test
* correct alias url test
* add some comments
* fix potentiall "can't send" deadlock on bridge

some documentation and license headers
2021-03-26 13:45:17 +01:00
Henry 396961e5e8 implement bridge between muxrcp and http 2021-03-26 13:36:48 +01:00
Henry a180c74c38 begin sign-in with ssb
* sketch session store
* use session store and unify authentication handling
* sketch muxrpc handlers
2021-03-26 13:36:42 +01:00
Henry abaff98f77 move aliases signing to internal 2021-03-23 17:13:06 +01:00
Henry d39d1ac6e9 go fmt ./... the last PR 2021-03-16 15:13:05 +01:00
Henry 4ecee3739e internal/broadcasts: fix test fluke
I'm not 100% sure how this ever passed so often. range over a map is
guaranteed to be random per the language spec. Not sure if this is
different for pointers but I'd be supprised.

Well, now this is testing the right things directly at least and doesn't
depend on the order of the output.
2021-02-15 15:26:50 +01:00
Henry fec92d428c change name to go-ssb-room
It has been brought to my attention that "gossb" reads like "gossip..?"
to the untrained eye. That's just confusing.

Also the project hosts a single room so the plural was just wrong.
2021-02-09 17:38:51 +01:00
Henry 2f907a1753 build fixes 2021-02-09 17:29:42 +01:00
Henry 0a44d19b4b add missing license headers 2021-02-09 12:53:33 +01:00
Henry e9013a0c6b change import path
this is part of the NGI work and should be clearly indicated as such
2021-02-04 16:54:30 +01:00
Henry 45c1919577 fix internal tests 2021-01-27 11:46:22 +01:00
Henry f4a0a48c97 js compat
bring schema of announce/leave and endpoints contents on par with JS
implementation.

annonce() and leave() somhow just return false

endpoints is just arrays of endpoints - I _guess_ the consuming client
has to keep track of who left and joined?!
2021-01-27 11:05:06 +01:00
Henry be5f248c93 imports cleanup 2021-01-27 10:01:35 +01:00
Henry 29688bc328 begin nodejs testing 2021-01-26 18:33:29 +01:00
Henry 994a76cd67 whoops2 2021-01-25 18:43:32 +01:00
Henry f4dc1b1f42 first simple test 2021-01-25 16:35:22 +01:00
Henry 6b90c96a5d room sever skeleton 2021-01-25 13:50:51 +01:00
Henry f325ed5cf3 init 2021-01-25 11:39:05 +01:00