Open xareelee opened 6 years ago
This fix is for swift 3.
Add the keyword required to designated initializers for protocol extension.
required
I found that @danthorpe forked this repo to add protocols to the class WebSocket, and the protocol could be extracted out of this repo.
WebSocket
https://github.com/danthorpe/SwiftWebSocket/blob/SWS-9_websockettype_protocol/Source/WebSocket.swift#L1677
To make a generic type instantiatable, we need to make the designated initializers marked with the keyword required.
This fix is for swift 3.
Add the keyword
required
to designated initializers for protocol extension.I found that @danthorpe forked this repo to add protocols to the class
WebSocket
, and the protocol could be extracted out of this repo.https://github.com/danthorpe/SwiftWebSocket/blob/SWS-9_websockettype_protocol/Source/WebSocket.swift#L1677
To make a generic type instantiatable, we need to make the designated initializers marked with the keyword
required
.