onConnected( )


Adds an event handler that runs when a connection or reconnection occurs.

A connection occurs on the first subscription to a channel or channel resource or when an existing connection is lost and then restored.

メソッド宣言
コピー
メソッド・パラメータ
handlerfunctionRequired

handler(): void The name of the function or the function expression to run when a connection occurs.

役に立ちましたか?
はい
いいえ