The framework currently doesn't support using a URLRequest with custom headers for the socket connection request.
This PR adds the ability to open a socket via a URLRequest with custom headers by making use of URLSession's webSocketTask(with request: URLRequest) function.
The framework currently doesn't support using a
URLRequest
with custom headers for the socket connection request.This PR adds the ability to open a socket via a
URLRequest
with custom headers by making use ofURLSession
'swebSocketTask(with request: URLRequest)
function.