Skip to content

on event handler does not work. #46

@capella55

Description

@capella55

This library works great but on event handler does not work.

var hubConnection = HubConnection(withUrl: "http://localhost/endpoint")
var chat = hubConnection.createHubProxy(hubName: "chat")

chat.on(eventName: "eventName") { (args) in
    if let message = args[0] {
        print("Message: \(message)")
    }
}

Does anybody see this issue and know the way to fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions