Skip to content

Commit 52017ad

Browse files
authored
Improve SRStatusCode import into Swift. (facebookincubator#418)
1 parent 29d8e0e commit 52017ad

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SocketRocket/SRWebSocket.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ typedef NS_ENUM(NSInteger, SRReadyState) {
2020
SR_CLOSED = 3,
2121
};
2222

23-
typedef enum SRStatusCode : NSInteger {
23+
typedef NS_ENUM(NSInteger, SRStatusCode) {
2424
// 0–999: Reserved and not used.
2525
SRStatusCodeNormal = 1000,
2626
SRStatusCodeGoingAway = 1001,
@@ -42,7 +42,7 @@ typedef enum SRStatusCode : NSInteger {
4242
// 2000–2999: Reserved for use by WebSocket extensions.
4343
// 3000–3999: Available for use by libraries and frameworks. May not be used by applications. Available for registration at the IANA via first-come, first-serve.
4444
// 4000–4999: Available for use by applications.
45-
} SRStatusCode;
45+
};
4646

4747
@class SRWebSocket;
4848

0 commit comments

Comments
 (0)