CommunityEvents
CommunityEvents:
object
Type declaration
community.edited()
edited: (
evt:CommunityEditedEvent) =>void
Parameters
| Parameter | Type |
|---|---|
evt | CommunityEditedEvent |
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
| Parameter | Type |
|---|---|
evt | CommunityJoinedEvent |
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
| Parameter | Type |
|---|---|
evt | CommunityLeaveEvent |
Returns
void
Example
import { rootServer, CommunityEvent, CommunityLeaveEvent } from "@rootsdk/server-app";
rootServer.community.communities.on(CommunityEvent.CommunityLeave, (evt: CommunityLeaveEvent) => {
// ...
});