Every row below is read back from the platform with
channel.getHistory(), or arrived live over the socket while
this page was open. Nothing on this page is generated.
Filtering happens in the browser over the records the platform returned.
Publishing here writes a real message to the channel. It comes back over the socket, and it is still there after a reload.
Exports contain the platform's own message records for the rows that currently match your filters.
const client = new OddSockets({ apiKey });
await client.connect();
const channel = client.channel(name);
await channel.subscribe(onMessage);
// what the platform retained
const past = await channel.getHistory({
count: 100
});