Skip to main content

CommunityEvents

CommunityEvents: object

Type declaration

community.edited()

edited: (evt: CommunityEditedEvent) => void

Parameters
ParameterType
evtCommunityEditedEvent
Returns

void

Example
import { rootServer, CommunityEvent, CommunityEditedEvent } from "@rootsdk/server-app";
rootServer.community.communities.on(CommunityEvent.CommunityEdited, (evt: CommunityEditedEvent) => {
// ...
});

community.joined()

joined: (evt: CommunityJoinedEvent) => void

Parameters
ParameterType
evtCommunityJoinedEvent
Returns

void

Example
import { rootServer, CommunityEvent, CommunityJoinedEvent } from "@rootsdk/server-app";
rootServer.community.communities.on(CommunityEvent.CommunityJoined, (evt: CommunityJoinedEvent) => {
// ...
});

community.leave()

leave: (evt: CommunityLeaveEvent) => void

Parameters
ParameterType
evtCommunityLeaveEvent
Returns

void

Example
import { rootServer, CommunityEvent, CommunityLeaveEvent } from "@rootsdk/server-app";
rootServer.community.communities.on(CommunityEvent.CommunityLeave, (evt: CommunityLeaveEvent) => {
// ...
});