     private var remoteOverlay: UIView?
     private var socket: SocketIOClient?
     
-    private init() {
-        
-    }
+    private init() {}
     
-    public func startConnection(url: String = "server.itadvice.dk:8006") {
+    public func startConnection(url: String = "localhost:8006") {
+        debugPrint("Remote Connection called at: \(url)")
         socket = SocketIOClient(socketURL: url, options: [.Log(false), .ForcePolling(true)])
         setupHandlers()
     }
     
     public func isConnected() -> Bool {
+        debugPrint("Remote Connection Status Asked")
         if let socket = socket {
             return socket.status == SocketIOClientStatus.Connected ? true : false
         } else {

//
//  AppDelegateExtension.swift
//  RemoveViewer
//
//  Created by Thomas Gilbert on 12/11/15.
//  Copyright © 2015 Thomas Gilbert. All rights reserved.

    }
    
    public func stopConnection() {
        debugPrint("Remote Connection Closing")
        socket?.close()
        socket = nil
    }
    
    private func setupHandlers() {
        socket?.on("draw dot") { [weak self] data, ack in
            debugPrint("Remote Connection Draw Dot \(data)")
            if let coords = data[0] as? NSDictionary, x = coords["x"] as? Double, y = coords["y"] as? Double  {
                self?.drawCircleOnOverlay(x, y: y)
            }
        }
        
        socket?.on("connect") {[weak self] data, ack in
            debugPrint("Remote Connection Connected")
            self?.requestSupport()
            self?.transmitScreen()
            self?.addRemotePresentationOverlay()
        }
        
        socket?.on("error") { ack in
            debugPrint("Remote Connection Error: \(ack)")
        }
        
        socket?.on("disconnect") {[weak self] data, ack in
            debugPrint("Remote Connection Disconnected")
            self?.removeRemotePresentationOverlay()
        }
        socket?.connect()
    }
    
