     }
     
     private func transmitScreen() {
+        
+        guard socket?.status == SocketIOClientStatus.Connected else {
+            debugPrint("Remote Connection Not Connected - Will not transmit screenshot")
+            return
+        }
+        
         let image = captureScreen()
         let smallerImage = UIImageJPEGRepresentation(image, 0.0)
         let base64String = smallerImage?.base64EncodedStringWithOptions(NSDataBase64EncodingOptions(rawValue: 0))

    }
    
    private func requestSupport() {
        let message = ["vendorid" : "\(UIDevice().identifierForVendor!.UUIDString)"]
        
        dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) {

//
//  RemoteControllableApp.swift
//  Transmit screenshot
//
//  Created by Thomas Gilbert on 12/11/15.
//  Copyright © 2015 Thomas Gilbert. All rights reserved.
