mirror of
https://github.com/samsonjs/cpwebsocket.git
synced 2026-03-25 09:15:48 +00:00
Define constants in the global scope.
(Feels dirty, but when you're mimicking C I guess C semantics are the way to go.)
This commit is contained in:
parent
61a48b32aa
commit
e171f4ab46
1 changed files with 4 additions and 5 deletions
|
|
@ -8,11 +8,10 @@
|
|||
|
||||
@import <Foundation/CPObject.j>
|
||||
|
||||
// FIXME export these ... #define?
|
||||
var CPWebSocketStateConnecting = 0,
|
||||
CPWebSocketStateOpen = 1,
|
||||
CPWebSocketStateClosing = 2,
|
||||
CPWebSocketStateClosed = 3;
|
||||
CPWebSocketStateConnecting = 0,
|
||||
CPWebSocketStateOpen = 1,
|
||||
CPWebSocketStateClosing = 2,
|
||||
CPWebSocketStateClosed = 3;
|
||||
|
||||
@implementation CPWebSocket : CPObject
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue