diff --git a/lib/index.js b/lib/index.js index a9668e3..323213c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -57,7 +57,7 @@ function parseJoinCommand(pieces, uri) { pieces.shift() pieces.shift() pieces.shift() - const shse = `shse:${pubkey}.${token}` + const shse = `shse:${pubkey}:${token}` const address = `net:${host}:${port}~${shse}` // TODO: add ws address here return { type: 'join', address } } diff --git a/test/create.test.js b/test/create.test.js index f29ce97..0aea254 100644 --- a/test/create.test.js +++ b/test/create.test.js @@ -75,6 +75,7 @@ test('create()', async (t) => { }) const uri = await p(stack.invite.create)({ + type: "follow", _hubMsAddr: 'net:example.com:8008~shse:HUB_PUBKEY', id: 'MOCK_ID', })