Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

DeepstreamRuntimeErrorHandler undeclared ? #23

Open
xunan623 opened this issue Apr 26, 2018 · 2 comments
Open

DeepstreamRuntimeErrorHandler undeclared ? #23

xunan623 opened this issue Apr 26, 2018 · 2 comments

Comments

@xunan623
Copy link

Can't find DeepstreamRuntimeErrorHandler file error My question is what configuration? I executed the pod install in the demo, but seven errors were reported. Please help to check it.

@sageata
Copy link

sageata commented May 3, 2018

I have the same problem.
Even when I create a class that meets the protocols, XCode complaints that I don't meet it.

@travisnguyen20
Copy link

Try to prefix all classes with "DS", they seem change name to prevent collision

final class DSRuntimeErrorHandler : NSObject,  DSDeepstreamRuntimeErrorHandler {
    func onException(_ topic: DSTopic!, event: DSEvent!, errorMessage: String!) {
        if (errorMessage != nil && topic != nil && event != nil) {
            print("Error: \(errorMessage!) for topic: \(topic!), event: \(event!)")
        }
    }
}

final class DSAppConnectionStateListener : NSObject, DSConnectionStateListener {
    func connectionStateChanged(_ connectionState: DSConnectionState!) {
        print("Connection state changed \(connectionState!)")
    }
} 

Hope this help

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants