Writing a WebSocket Manager in iOS: Building an Echo Chat App from Scratch

How do you create a simple yet effective WebSocket Manager using Apple’s native WebSocket API?