 import Foundation
 import SwiftWebSocket
 import Wrap
+import Unbox
 
 public typealias SocketState = SwiftWebSocket.WebSocketReadyState
 

		onSocketOpen?()
	}

	private func webSocketDidReceiveMessage(message: String?) {

	}
	
	private func webSocketDidReceiveMessage(messageData: NSData) {
		webSocketDidReceiveMessage(String(data: messageData, encoding: NSUTF8StringEncoding))
	}
	
	private func webSocketDidClose(code code: Int, reason: String, wasClean: Bool) {

	@objc private func sendHeartBeat() {
		let message = Message(
			topic: "phoenix",
			event: Event.Default(.Heartbeat)
		)

		try! push(message)
