 
 public typealias XMPPStreamCompletionHandler = (shouldTrustPeer: Bool?) -> Void
 public typealias OneChatAuthCompletionHandler = (stream: XMPPStream, error: DDXMLElement?) -> Void
+public typealias OneChatConnectCompletionHandler = (stream: XMPPStream, error: DDXMLElement?) -> Void
 
 public protocol OneChatDelegate {
 	func oneStream(sender: XMPPStream?, socketDidConnect socket: GCDAsyncSocket?)

	var password: String?
	
	var streamDidConnectCompletionBlock: OneChatAuthCompletionHandler?
	
	// MARK: Singleton
	

		if let delegate: OneChatDelegate = delegate {
			sharedInstance.delegate = delegate
		}
		OneRoster.sharedInstance.fetchedResultsController()?.delegate = OneRoster.sharedInstance
		sharedInstance.streamDidConnectCompletionBlock = completion
	}
	
