@oobleck/fluid-backend
Version:
Fluid Framework backend for nteract RTC
20 lines (17 loc) • 653 B
text/typescript
import { FluidContainer, } from "@fluid-experimental/fluid-framework";
import { FrsResources } from "@fluid-experimental/frs-client";
import { ShellDDS } from "../model";
import { Presence } from "./presence";
export class ResolverContext {
container?: FluidContainer;
shell?: ShellDDS;
presence?: Presence;
initialize({ fluidContainer, containerServices }: FrsResources) {
this.container = fluidContainer;
this.shell = fluidContainer.initialObjects.shell as ShellDDS;
this.presence = new Presence(containerServices.audience, (this.shell as any).runtime);
}
dispose() {
this.container?.dispose();
}
}