tidwall / SwiftWebSocket

Fast Websockets in Swift for iOS and OSX
MIT License
1.53k stars 246 forks source link

anyone gotten this to work in a playground? #116

Closed gaming-hacker closed 6 years ago

gaming-hacker commented 6 years ago

just including the source file not the framework.

Playground execution failed:
error: websocket.playground:1:12: error: use of unresolved identifier 'WebSocket'
  let ws = WebSocket("wss://echo.websocket.org")
strikerEng commented 6 years ago

It may not work in playground if you don't have the necessary dependencies downloaded which I don't know how to add to your Playground. I was thinking about going this route but I just went ahead and created a project for it. It'll save you a headache.

gaming-hacker commented 6 years ago

Thanks, that's what I ended up doing as well. Sorry just forgot to close this issue.