tidwall / SwiftWebSocket

Fast Websockets in Swift for iOS and OSX
MIT License
1.53k stars 244 forks source link

WebSocketError.needMoreInput #151

Open zxpLearnios opened 4 years ago

zxpLearnios commented 4 years ago

when I use it from the guide in github. but it show "

func readResponse() throws { let end : [UInt8] = [ 0x0D, 0x0A, 0x0D, 0x0A ] let ptr = memmem(inputBytes!+inputBytesStart, inputBytesLength, end, 4) if ptr == nil { throw WebSocketError.needMoreInput } " throw WebSocketError.needMoreInput is throw