Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 393 Bytes

quickstart.md

File metadata and controls

27 lines (21 loc) · 393 Bytes

Quick start

This tutorial helps you quick start an application.

Data

import { Allotize } from "allotize-js"

const user = Allotize.Data({
    route: "user/bob",
    data: {
        name: "Bob",
        posts: 0
    }
});

Channel

import { Allotize } from "allotize-js"

const chat = Allotize.BoundedChannel({
    route: "chat",
    size: 25 
});