UNPKG

@parlour/parlour-client

Version:

The parlour websocket client

17 lines (15 loc) 178 B
class Counter { constructor() { this.cnt = 0; } next() { let c = this.cnt; this.cnt++; return c; } } export default { create: () => { return new Counter(); } };