 	public let url: NSURL
 	public var reconnectOnError = true
 
-	public var onSocketOpen: (() -> Void)?
-	public var onSocketError: ((error: NSError) -> Void)?
-	public var onSocketClose: ((code: Int, reason: String, wasClean: Bool) -> Void)?
-	public var onSocketMessage: ((result: Result<Message>) -> Void)?
+	/// <#Description#>
+	public var onOpen: (() -> Void)?
+	/// <#Description#>
+	public var onError: ((error: NSError) -> Void)?
+	/// <#Description#>
+	public var onClose: ((code: Int, reason: String, wasClean: Bool) -> Void)?
+	/// <#Description#>
+	public var onMessage: ((result: Result<Message>) -> Void)?
 
 	public var socketState: SocketState {
 		return socket?.readyState ?? .Closed

				)
			}

			onSocketMessage?(result: .Success(message))
		} catch let error as NSError {
			webSocketDidError(error)
			onSocketMessage?(result: .Failure(error))
		}
	}
	

			startHeatBeatTimer(timeInterval: timeInterval)
		}

		onOpen?()
	}

	private func webSocketDidReceiveMessage(messageStr: String) {
