Created
April 22, 2022 13:02
-
-
Save thisisjofrank/85b27bfd135f83b9a879e15014ace31b to your computer and use it in GitHub Desktop.
Let's start by defining a Swarm class in a file called Swarm.ts, and some member variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Types } from 'ably'; | |
import Ably from 'ably/promises'; | |
export default class Swarm { | |
public readonly id: string; | |
private readonly ably: Ably.Realtime; | |
private readonly channel: Types.RealtimeChannelPromise; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment