Can I use SwiftNIO client websocket with different server websocket?

722 views Asked by At

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.

1

There are 1 answers

1
tanner0101 On

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