mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-18 22:44:26 +01:00
update
This commit is contained in:
@@ -30,8 +30,7 @@ const Home: Component = () => {
|
||||
createEffect(() => {
|
||||
config().relayUrls.map(async (relayUrl) => {
|
||||
const relay = await pool().ensureRelay(relayUrl);
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
relay.on('notice', (msg: any) => {
|
||||
relay.on('notice', (msg: string) => {
|
||||
console.error(`NOTICE: ${relayUrl}: ${msg}`);
|
||||
});
|
||||
});
|
||||
@@ -44,6 +43,10 @@ const Home: Component = () => {
|
||||
})),
|
||||
);
|
||||
|
||||
createEffect(() => {
|
||||
console.log(followingPubkeys());
|
||||
});
|
||||
|
||||
const { events: followingsPosts } = useSubscription(() =>
|
||||
ensureNonNull([pubkey()] as const)(([pubkeyNonNull]) => ({
|
||||
relayUrls: config().relayUrls,
|
||||
|
||||
Reference in New Issue
Block a user