         })
     }
     
-    public func subscribe(endpoint: String, callback: (AnyObject...) -> ()) {
-        session.subscribe(endpoint, onEvent: { (event: MDWampEvent!) -> Void in
-            print("Sub came in: ", event)
-            
-            //print("", event.subscription)
-            //print("", event.publication)
-            //print("", event.topic)
-            print("", event.details)
-            print("", event.arguments)
-            //print("", event.argumentsKw)
-            //print("", event.event)
-            
-            callback(event.arguments)
-            
-            }) { (err: NSError!) -> Void in
-                if let e = err {
-                    print("An error occured: ", e)
-                }
-                else {
-                    print("Sub completed")
-                }
-        }
-    }
+//    public func subscribe(endpoint: String, callback: (AnyObject...) -> ()) {
+//        session.subscribe(endpoint, onEvent: { (event: MDWampEvent!) -> Void in
+//            print("Sub came in: ", event)
+//            
+//            //print("", event.subscription)
+//            //print("", event.publication)
+//            //print("", event.topic)
+//            print("", event.details)
+//            print("", event.arguments)
+//            //print("", event.argumentsKw)
+//            //print("", event.event)
+//            
+//            callback(event.arguments)
+//            
+//            }) { (err: NSError!) -> Void in
+//                if let e = err {
+//                    print("An error occured: ", e)
+//                }
+//                else {
+//                    print("Sub completed")
+//                }
+//        }
+//    }
 }
 
 

    }
    
    
    //MARK: Messaging Patterns
    public func register(endpoint: String, callback: (AnyObject... ) -> ()) {
        session.registerRPC(endpoint, procedure: { (wamp: MDWamp!, invocation: MDWampInvocation!) -> Void in
            print("Someone called hello: ", invocation)

        
    }
    
    //MARK: Delegates -------------
    public func mdwamp(wamp: MDWamp!, sessionEstablished info: [NSObject : AnyObject]!) {
        print("Session Established!")
        delegate!.onJoin()
