 		webSocketDidError(error)
 	}
 
-	@objc public func webSocketMessageData(data: NSData) {
-		webSocketDidReceiveMessage(data)
+	@objc public func webSocketMessageText(text: String) {
+		webSocketDidReceiveMessage(text)
 	}
 
 	@objc public func webSocketClose(code: Int, reason: String, wasClean: Bool) {


				channel.triggerEvent(
					message.event,
					ref: message.ref,
					payload: message.payload
				)
			}


	- throws: If message couldn't successfully be converted to JSON.
	*/
	public func push(message: Message) throws {
		let dict: [String: AnyObject] = try Wrap(message)
		let jsonData = try NSJSONSerialization.dataWithJSONObject(dict, options: [])

		queue.addOperationWithBlock { [weak self] in
			self?.socket?.send(jsonData)
		}
