Skip to content

WebSocketClient set ssl and proxy,but cannot use the proxy #1112

Closed
@ranan05

Description

@ranan05

i read the code of WebSocketClient.class,the method:run() has code blocks:

public void run() {
InputStream istream;
try {
boolean isNewSocket = false;
if (socketFactory != null) {
socket = socketFactory.createSocket();
} else if( socket == null ) {
socket = new Socket( proxy );
isNewSocket = true;
} else if( socket.isClosed() ) {
throw new IOException();
}

i found if i set socketFactory, it won't use the proxy. But wss must set the socketFactory, also it has other method?
thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions