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

Add required to designated initializers #130

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xareelee
Copy link

This fix is for swift 4.

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.

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

Successfully merging this pull request may close these issues.

1 participant