I am trying to add SocketClusteriOS (https://github.com/abpopov/SocketCluster-ios-client) pod written in Objective C to Swift project. I've tested the this pod in Objective C project, url seems working fine, but when I am trying to add it to Swift project I have strange errors:
NewSocketTestApp[1641:29629] {"event":"#disconnect","data":
{"code":4005}}
#disconnect
I might think the problem in bridging header. I attached the link to my repository of test app. https://github.com/davigr/SocketClusterSwift. SocketCluster-ios-client uses SocketRocket pod, I mentioned this pod in my bridging header as well. Unfortunately, when I am trying connect it couldn't. I did the same code in Objective C project, everything was fine. Could anyone help me to fix this issue? Maybe problem in Project settings or bridging headers My bridging header:
#ifndef Bridging_Header_h
#define Bridging_Header_h
#import "Pods/SocketCluster-ios-client/Pod/Classes/SCChannel.h"
#import "Pods/SocketCluster-ios-client/Pod/Classes/SCSocket.h"
#import "Pods/SocketCluster-ios-client/Pod/Classes/SCMessage.h"
#import "Pods/SocketRocket/SocketRocket/SocketRocket.h"
#import <Foundation/Foundation.h>
#import <CFNetwork/CFNetwork.h>
#import <Security/Security.h>