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


public typealias XMPPStreamCompletionHandler = (shouldTrustPeer: Bool?) -> Void
public typealias OneChatAuthCompletionHandler = (stream: XMPPStream, error: DDXMLElement?) -> Void

public protocol OneChatDelegate {
	func oneStream(sender: XMPPStream?, socketDidConnect socket: GCDAsyncSocket?)

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