Alamofire has started development of a
WebSocketRequest type on the
URLSessionWebSocketTask to provide websocket functionality using Alamofire APIs. We'd like to avoid the mistakes made during
DataStreamRequest's developer and start gathering use cases, desired API, and feature requests before fully building out the feature.
WebSocketRequest won't be too different than
DataStreamRequest, with closure handlers that are called as data is received. The biggest difference, obviously, is the ability to send messages back along the socket.
So we're asking the community to tell use your dream websocket features by providing examples of your use, problems you encounter with other websocket libraries or
URLSessionWebSocketTask, and features you wish those other libraries had.