                 }
         }
     }
-
-
+    
+    
     //MARK: OLD CODE
     public func register(endpoint: String, callback: (AnyObject... ) -> ()) {
         session.registerRPC(endpoint, procedure: { (wamp: MDWamp!, invocation: MDWampInvocation!) -> Void in

    
    
    // Testing a sample call
    func _subscribe(endpoint: String, fn: ([Any]) -> ()) {
        // This is the real subscrive method
        session.subscribe(endpoint, onEvent: { (event: MDWampEvent!) -> Void in
            print("Sub came in: ", event)

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