setCurrentUser

sets the current user from whose name the comments will be sent

void setCurrentUser(number|string id);

Parameters

idnumber|stringthe ID of a user

Example

// after logging in
$$("comments").setCurrentUser(4);

See also
Back to top