0

I am new to WebSocket, choosing between https://github.com/daltoniam/Starscream and SwiftNIO,

With SwiftNIO couldn't find clear guidelines, can I Use just SwiftNIO client WebSocket in iOS. and the WebSocket server will be implemented using different web technology(Java or Spring websocket)? or if I develop client using SwiftNIO does server also has to be build using SwiftNIO?

My App is iOS 10 onwards, so I can't use apple WebSocket API(>ios13)

Thanks in advance.

Chandan Shetty SP
  • 5,087
  • 6
  • 42
  • 63

1 Answers1

0

This package is built on SwiftNIO's WebSocket module, but gives a higher level API similar to Starscream: https://github.com/vapor/websocket-kit/

You can see example usage here: https://github.com/vapor/websocket-kit/blob/master/Tests/WebSocketKitTests/WebSocketKitTests.swift#L8-L17

tanner0101
  • 4,005
  • 19
  • 33
  • Having confusion about choosing a framework, should I go with Starscream or SwiftNIO(since it is from Apple). My requirement is only for the iOS side (Server-side will be implemented in JAVA) – Chandan Shetty SP Jul 17 '20 at 02:14