Use the ON CONNECT event

/help ON CONNECT