Click or drag to resize

SFSEventPUBLIC_MESSAGE Field

Dispatched when a public message is received by the current user.

Namespace:  Sfs2X.Core
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.7.11.0 (1.7.11)
Syntax
C#
public static readonly string PUBLIC_MESSAGE

Field Value

Type: String
Remarks
This event is caused by a PublicMessageRequest request sent by any user in the target Room, including the current user himself.

The Params object contains the following parameters:

ParameterDescription
room(Room) An object representing the Room at which the message is targeted.
sender(User) An object representing the user who sent the message.
message(string) The message sent by the user.
data(ISFSObject) An object containing custom parameters which might accompany the message.
Examples
See the PublicMessageRequest example.
See Also