Update of Lombok

Fixed headers being passed to Websocket. Huge thanks to @isaackogan - https://github.com/isaackogan
This commit is contained in:
kohlerpop1
2024-05-23 18:32:55 -04:00
parent 5c715bfd52
commit 5abfd95c89
2 changed files with 3 additions and 4 deletions

View File

@@ -33,7 +33,6 @@ import org.java_websocket.client.WebSocketClient;
import javax.net.ssl.*;
import java.net.Proxy;
import java.security.cert.X509Certificate;
import java.util.HashMap;
public class TikTokWebSocketClient implements SocketClient {
private final LiveClientSettings clientSettings;
@@ -63,7 +62,7 @@ public class TikTokWebSocketClient implements SocketClient {
messageHandler.handle(liveClient, connectionData.getWebcastResponse());
var headers = new HashMap<String, String>();
var headers = clientSettings.getHttpSettings().getHeaders();
headers.put("Cookie", connectionData.getWebsocketCookies());
webSocketClient = new TikTokWebSocketListener(connectionData.getWebsocketUrl(),
headers,