A través del Wallet Server
Conéctate por Socket.IO, inicia sesión y llama a sus eventos. Aquí, listar comunidades.
import { io } from 'socket.io-client';
const url = 'https://your-wallet-server';
const email = 'your email';
const password = 'your password';
// 1. Sign in. The answer carries your access token.
const guest = io(url);
guest.emit('auth:login', { body: { email, password } });
guest.once('auth:logged', ({ result }) => {
// 2. Connect again with the token, then ask for communities.
const socket = io(url, { auth: { token: result.user.access } });
socket.emit('community:list', { query: { take: 2 } });
socket.once('community:listed', ({ result }) => console.log(result.communities));
});