This commit is contained in:
Erik 2015-09-08 09:19:17 -04:00
parent 17426c1432
commit 77e1da2b51

View File

@ -73,7 +73,9 @@ final class SocketPacket: Printable {
}
func getEvent() -> String {
return data?.removeAtIndex(0) as! String
let event = data?.removeAtIndex(0)
return event as? String ?? String(stringInterpolationSegment: event!)
}
func addData(data:NSData) -> Bool {