Krishan vir  singh
Krishan vir singh

Reputation: 110

Invalid Redeclaration of SocketIOManger with swift in ios

import UIKIt

Class SocketIOManager : NSObject {

}

Upvotes: 1

Views: 247

Answers (3)

Nazish Ali
Nazish Ali

Reputation: 422

SocketIOManager class already exist in your socketIO framework, therefore you do not need to create another class for It. I think this is happening with you.

Upvotes: 2

Krishan vir  singh
Krishan vir singh

Reputation: 110

Actaully Class name with SocketIOManager is already defined in SocketIO-CLient Swift Library thats why it was showing this error .

Upvotes: 1

Sean Lintern
Sean Lintern

Reputation: 3141

SocketIOManager already exists in Socket.IO, you need to prefix your class with your own prefix:

Class MySocketIOManager : SocketIOManager {

}

Upvotes: 2

Related Questions