i am implementing pod 'Socket.IO-Client-Swift'
but in SocketEngine.swift file i'm getting this error.
private func handleBase64(message: String) {
// binary in base64 string
let noPrefix = message[message.index(message.startIndex, offsetBy: 2)..<message.endIndex]
if let data = Data(base64Encoded: noPrefix, options: .ignoreUnknownCharacters) {
client?.parseEngineBinaryData(data)
}
}
thanks in advance!!
noPrefix
is of typeSubstring
, just coerce it to String: