Skip to content

Commit 2913751

Browse files
committed
update docs, remove other prints
1 parent 1c2af5a commit 2913751

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Source/SocketIO/Engine/SocketEngine.swift

-2
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,6 @@ open class SocketEngine:
566566

567567
private func sendPing() {
568568
guard connected, let pingInterval = pingInterval else {
569-
print("not connected \(self.connected) or no ping interval \(self.pingInterval ?? -222)")
570569
return
571570
}
572571

@@ -582,7 +581,6 @@ open class SocketEngine:
582581
engineQueue.asyncAfter(deadline: .now() + .milliseconds(pingInterval)) {[weak self, id = self.sid] in
583582
// Make sure not to ping old connections
584583
guard let this = self, this.sid == id else {
585-
print("wrong ping?")
586584
return
587585
}
588586

Usage Docs/15to16.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
# Upgrading from v15 to v16
22

33
This guide will help you navigate the changes that were introduced in v16.
4+
5+
## Objective-c is no longer supported. You must now use Swift.
6+
7+
## Client supports multiple socket.io versions
8+
9+
The client now supports socket.io 3 servers. This is mostly a transparent change, however if your sever
10+
is socket.io 2, you must send `.version(.two)` as an option to the manager.
11+
12+
```swift
13+
SocketManager(socketURL: URL(string:"http://localhost:8087/")!, config: [.version(.two)])
14+
```
15+
16+

0 commit comments

Comments
 (0)