Added stream-context support to StreamSocketClient