We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First of all, thank you for your great work, the current version works very stable for me.
If i use a http proxy, the connection fails:
URI proxyUri = new URI("http", null, proxy.host, proxy.port, null, null, null); WebOptionsBuilder webOptionsBuilder = Whatsapp.webBuilder() .newConnection(UUID.fromString(session.uuid())) .name(session.name()) .proxy(proxyUri) .historyLength(WebHistoryLength.extended());
Presumably this is because the websocket handshake payload contains the wrong Host: In WebSocketClient:
Host
WebSocketClient
private CompletableFuture<Void> handshake(String path) { var payload = generateWebSocketUpgradePayload(path); return underlyingSocket.writeAsync(ByteBuffer.wrap(payload.getBytes())) .thenComposeAsync(writeResult -> readWebSocketUpgradeResponse()) .thenComposeAsync(this::parseWebSocketUpgradeResponse); }
The payload is:
GET /ws/chat HTTP/1.1 Host: proxy.host:1234 Connection: Upgrade Upgrade: websocket Sec-WebSocket-Version: 13 Sec-WebSocket-Key: DludGb/DusK1iE8OHJVNHw==
If i fix up the handshake payload during debugging:
payload = payload.replace("proxy.host:1234", "web.whatsapp.com")
The connection works as expected.
The text was updated successfully, but these errors were encountered:
Thanks for reporting, will be fixed in 0.0.8, eta next week
Sorry, something went wrong.
No branches or pull requests
First of all, thank you for your great work, the current version works very stable for me.
If i use a http proxy, the connection fails:
Presumably this is because the websocket handshake payload contains the wrong
Host
:In
WebSocketClient
:The payload is:
If i fix up the handshake payload during debugging:
The connection works as expected.
The text was updated successfully, but these errors were encountered: