Skip to content

Commit 47f5dcb

Browse files
committed
style
1 parent e333098 commit 47f5dcb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SocketIOClientSwift/SocketEngine.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ public final class SocketEngine: NSObject, WebSocketDelegate, SocketLogClient {
125125
var byteArray = [UInt8](count: 1, repeatedValue: 0x0)
126126
byteArray[0] = 4
127127
var mutData = NSMutableData(bytes: &byteArray, length: 1)
128+
128129
mutData.appendData(data)
130+
129131
return (mutData, nil)
130132
} else {
131133
var str = "b4"
@@ -501,7 +503,8 @@ public final class SocketEngine: NSObject, WebSocketDelegate, SocketLogClient {
501503
message.removeAtIndex(message.startIndex)
502504
let mesData = message.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: false)!
503505

504-
if let json = NSJSONSerialization.JSONObjectWithData(mesData, options: NSJSONReadingOptions.AllowFragments,
506+
if let json = NSJSONSerialization.JSONObjectWithData(mesData,
507+
options: NSJSONReadingOptions.AllowFragments,
505508
error: &err) as? NSDictionary, let sid = json["sid"] as? String {
506509
self.sid = sid
507510
self._connected = true

0 commit comments

Comments
 (0)