Fixes SocketRocket crash on Xcode 9.3+

This commit is contained in:
James Chen 2018-06-07 10:07:45 +08:00
parent 281a4c920f
commit f6b83e1947
1 changed files with 9 additions and 9 deletions

View File

@ -14,15 +14,15 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
struct SRDelegateAvailableMethods { struct SRDelegateAvailableMethods {
BOOL didReceiveMessage : 1; BOOL didReceiveMessage;
BOOL didReceiveMessageWithString : 1; BOOL didReceiveMessageWithString;
BOOL didReceiveMessageWithData : 1; BOOL didReceiveMessageWithData;
BOOL didOpen : 1; BOOL didOpen;
BOOL didFailWithError : 1; BOOL didFailWithError;
BOOL didCloseWithCode : 1; BOOL didCloseWithCode;
BOOL didReceivePing : 1; BOOL didReceivePing;
BOOL didReceivePong : 1; BOOL didReceivePong;
BOOL shouldConvertTextFrameToString : 1; BOOL shouldConvertTextFrameToString;
}; };
typedef struct SRDelegateAvailableMethods SRDelegateAvailableMethods; typedef struct SRDelegateAvailableMethods SRDelegateAvailableMethods;