Skip to content

Reconnect  #415

@blajivskiy

Description

@blajivskiy

Hey. Tell me please, can I do reconnect this way:

socket.onDisconnect = { (error: error?) in {
self.socket.connect ()
}

At such attempt I have errors in the console and when I call connect () I do not get into onDisconnect {} any more. :( The main thing is that on swift 3 this method worked.

I ask you to give advice on how to improve my code. Thank you in advance for your cooperation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions