PubSubClientMethodsonceCopy page|View as Markdown|Open in Claude|More actionsonce once(event, fn) Attaches an event handler to the specified event. The handler will fire only once. Parameters NameTypeDescriptioneventstringName of the event. See the list of events.fnFunctionAn event handler.