This test suite was written by me to understand the behaviour and side-effects of NSURLSessionWebSocketTask.
This was done because the official API documentation is completely useless.
There are two files in this gist:
main.m: The minimal unit test that only depends on Foundation.frameworkmain.py: The Websockets unit test server, based on the Python Websockets module
Findings: