@textea/y-socket.io
Version:
Socket.io Connector for Yjs
10 lines (6 loc) • 377 B
TypeScript
import { Awareness } from 'y-protocols/awareness';
declare type ClientId = Awareness['clientID'];
declare type AwarenessChanges = Record<'added' | 'updated' | 'removed', ClientId[]>;
declare const getClients: (awareness: Awareness) => ClientId[];
declare const getOtherClients: (awareness: Awareness) => ClientId[];
export { AwarenessChanges, getClients, getOtherClients };