add useragent to ws requests

This commit is contained in:
Toshit Chawda 2024-07-02 21:09:09 -07:00
parent 0aec6e563c
commit b5263a06fa
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
5 changed files with 8 additions and 6 deletions

View file

@ -247,7 +247,7 @@ impl EpoxyClient {
protocols: Vec<String>,
headers: JsValue,
) -> Result<EpoxyWebSocket, EpoxyError> {
EpoxyWebSocket::connect(self, handlers, url, protocols, headers).await
EpoxyWebSocket::connect(self, handlers, url, protocols, headers, &self.user_agent).await
}
pub async fn connect_tcp(