Compare commits

...

3 Commits

Author SHA1 Message Date
Dalton a398fa11b1 Merge pull request #131 from SamDecrock/swift-1.2
fixed connect() function using Master code
2015-10-30 10:46:03 -07:00
SamDecrock 3830fc2691 fixed connect() function using Master code 2015-10-30 10:53:40 +01:00
Dalton 6cc4707a80 updated README 2015-09-14 09:34:47 -07:00
2 changed files with 7 additions and 5 deletions
+2
View File
@@ -4,6 +4,8 @@ Starscream is a conforming WebSocket ([RFC 6455](http://tools.ietf.org/html/rfc6
It's Objective-C counter part can be found here: [Jetfire](https://github.com/acmacalister/jetfire)
This is the Swift 1.2 branch. The last release of 1.2 was tag `0.9.7`. If you need Swift 2.0 checkout the master branch.
## Features
- Conforms to all of the base [Autobahn test suite](http://autobahn.ws/testsuite/).
+5 -5
View File
@@ -127,11 +127,11 @@ public class WebSocket : NSObject, NSStreamDelegate {
}
dispatch_async(queue,{ [weak self] in
self?.didDisconnect = false
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,0), { [weak self] in
self?.isCreated = true
self?.createHTTPRequest()
self?.isCreated = false
})
})
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,0), { [weak self] in
self?.isCreated = true
self?.createHTTPRequest()
self?.isCreated = false
})
}