pusher / NWWebSocket

A WebSocket client written in Swift, using the Network framework from Apple.
MIT License
123 stars 25 forks source link

Use a localhost WebSocket server in 'NWWebSocketTests' #9

Closed danielrbrowne closed 3 years ago

danielrbrowne commented 3 years ago

Currently, NWWebSocketTests uses the free WebSocket Echo server wss://echo.websocket.org. This means that these unit tests are liable to fail if that server is offline, or is otherwise very slow to respond to messages sent by the tests.

This should be replaced by a localhost WebSocket server to avoid all of these potential issues. An example of such an implementation is here.