Skip to content

Commit

Permalink
make WSResponse values public
Browse files Browse the repository at this point in the history
  • Loading branch information
hishnash committed Jun 18, 2017
1 parent 3104c28 commit bce64da
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/WebSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public protocol WebSocketAdvancedDelegate: class {

open class WebSocket : NSObject, StreamDelegate {

enum OpCode : UInt8 {
public enum OpCode : UInt8 {
case continueFrame = 0x0
case textFrame = 0x1
case binaryFrame = 0x2
Expand Down Expand Up @@ -111,11 +111,11 @@ open class WebSocket : NSObject, StreamDelegate {

public class WSResponse {
var isFin = false
var code: OpCode = .continueFrame
public var code: OpCode = .continueFrame
var bytesLeft = 0
var frameCount = 0
var buffer: NSMutableData?
let firstFrame = {
public var frameCount = 0
public var buffer: NSMutableData?
public let firstFrame = {
return Date()
}()
}
Expand Down

0 comments on commit bce64da

Please sign in to comment.