activate()
Activates a session so you can send messages.
Declaration
func activate() throwsDiscussion
If you create an inactive session using the inactive initialization option, you must activate the session before deinitialization. Deinitializing an inactive session causes the process to crash.
If activation fails, this method automatically cancels the session and throws a XPCRichError that describes the reason activation failed.