This repository was archived by the owner on Jun 13, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ open class Client: NSObject {
4949 - parameter applicationId: The application id to use
5050 - parameter clientKey: The client key to use
5151 */
52+ @objc ( initWithServer: applicationId: clientKey: )
5253 public init ( server: String , applicationId: String ? = nil , clientKey: String ? = nil ) {
5354 guard let cmpts = URLComponents ( string: server) else {
5455 fatalError ( " Server should be a valid URL. " )
@@ -227,6 +228,7 @@ extension Client {
227228 This will disconnect and resubscribe all existing subscriptions. This is not required to be called the first time
228229 you use the client, and should usually only be called when an error occurs.
229230 */
231+ @objc ( reconnect)
230232 public func reconnect( ) {
231233 guard socket == nil || !isConnecting else { return }
232234 socket? . disconnect ( )
@@ -247,6 +249,7 @@ extension Client {
247249 This does not remove any subscriptions - if you `reconnect()` your existing subscriptions will be restored.
248250 Use this if you wish to dispose of the live query client.
249251 */
252+ @objc ( disconnect)
250253 public func disconnect( ) {
251254 isConnecting = false
252255 guard let socket = socket
You can’t perform that action at this time.
0 commit comments