Compare commits

...
2 Commits
Author SHA1 Message Date
Erik 4d07d2911f bump version 2016-01-18 15:55:18 -05:00
Erik 0d6e4af62f fix websocket bug 2016-01-18 15:54:28 -05:00
3 changed files with 8 additions and 6 deletions

No files matched your search

+3 -3
View File
@@ -85,7 +85,7 @@ Carthage
-----------------
Add this line to your `Cartfile`:
```
github "socketio/socket.io-client-swift" ~> 5.2.0 # Or latest version
github "socketio/socket.io-client-swift" ~> 5.2.1 # Or latest version
```
Run `carthage update --platform ios,macosx`.
@@ -99,7 +99,7 @@ source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'Socket.IO-Client-Swift', '~> 5.2.0' # Or latest version
pod 'Socket.IO-Client-Swift', '~> 5.2.1' # Or latest version
```
Install pods:
@@ -127,7 +127,7 @@ CocoaSeeds
Add this line to your `Seedfile`:
```
github "socketio/socket.io-client-swift", "v5.2.0", :files => "Source/*.swift" # Or latest version
github "socketio/socket.io-client-swift", "v5.2.1", :files => "Source/*.swift" # Or latest version
```
Run `seed install`.
+2 -2
View File
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "Socket.IO-Client-Swift"
s.module_name = "SocketIOClientSwift"
s.version = "5.2.0"
s.version = "5.2.1"
s.summary = "Socket.IO-client for iOS and OS X"
s.description = <<-DESC
Socket.IO-client for iOS and OS X.
@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '9.0'
s.source = { :git => "https://github.com/socketio/socket.io-client-swift.git", :tag => 'v5.2.0' }
s.source = { :git => "https://github.com/socketio/socket.io-client-swift.git", :tag => 'v5.2.1' }
s.source_files = "Source/**/*.swift"
s.requires_arc = true
# s.dependency 'Starscream', '~> 0.9' # currently this repo includes Starscream swift files
+3 -1
View File
@@ -393,7 +393,9 @@ public class WebSocket : NSObject, NSStreamDelegate {
s.onConnect?()
s.delegate?.websocketDidConnect(s)
}
case -1: break //do nothing, we are going to collect more data
case -1:
fragBuffer = NSData(bytes: buffer, length: bufferLen)
break //do nothing, we are going to collect more data
default:
doDisconnect(errorWithDetail("Invalid HTTP upgrade", code: UInt16(code)))
}