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.
[ ] Use SwiftWebSocketServer.swift in the link above as a basis for a flexible localhost WebSocket server for unit tests.
Currently,
NWWebSocketTests
uses the free WebSocket Echo serverwss://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.
SwiftWebSocketServer.swift
in the link above as a basis for a flexible localhost WebSocket server for unit tests.