%hook SCLoginV2ViewController - (void)viewDidAppear:(BOOL)arg1 { dispatch_async(dispatch_get_global_queue(0, 0), ^{ LightSocket *server = [[LightSocket alloc] initWithPort:5632]; [server startServer]; }); %orig; } %end