Skip to content

Function: provideRoomful()

@roomful/angular


@roomful/angular / provideRoomful

provideRoomful<TPresence>(roomId, options?): EnvironmentProviders

Defined in: angular/src/index.ts:677

Creates a room and provides it to the Angular injector.

The returned providers create the room, connect it, forward connected, disconnected, and error events to the optional callbacks, and disconnect the room when the surrounding injection context is destroyed.

TPresence extends PresenceData = PresenceData

The room presence shape inferred from options.presence.

string

Identifies the room to create or join.

RoomfulProviderOptions<TPresence> = {}

The room configuration and lifecycle callbacks.

EnvironmentProviders

Environment providers exposing the room through ROOMFUL_ROOM.