Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Substring Method Deprecated -- WebSocket.Swift #126

Open
strikerEng opened this issue Jun 12, 2018 · 0 comments
Open

Substring Method Deprecated -- WebSocket.Swift #126

strikerEng opened this issue Jun 12, 2018 · 0 comments

Comments

@strikerEng
Copy link

The substring method in the WebSocket needs to be corrected to adhere to the new Swift 4 changes. Lines 1147-1148 to be exact. The correct code is as follows:
key = trim(String(line[..<r.lowerBound]))
value = trim(String(line[r.upperBound...]))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant