       reset()
     }
   }
-  
+
   // MARK: Phoenix Payload
   public class Payload {
     var topic: String
     var event: String
     var message: Phoenix.Message
-    
+
     public init(topic: String, event: String, message: Phoenix.Message) {
       (self.topic, self.event, self.message) = (topic, event, message)
     }
-    
-  }
-  
+
+  }
+
   // MARK: Phoenix Socket
   public class Socket: NSObject, WebSocketDelegate {
     var conn: WebSocket?

        }
      }
    }
    
    func send(event: String, message: Phoenix.Message) {
      print("conn sending")
      let payload = Phoenix.Payload(topic: topic!, event: event, message: message)
      socket?.send(payload)
    }
    
    public func leave(message: Phoenix.Message) {
      if let sock = socket {
        sock.leave(topic: topic!, message: message)

        }
      }
    }

    // WebSocket Delegate Methods
    public func websocketDidReceiveMessage(socket: WebSocket, text: String) {
      print("socket message: \(text)")
