ws close code and reason, ws headers

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

View file

@ -245,8 +245,9 @@ impl EpoxyClient {
handlers: EpoxyHandlers,
url: String,
protocols: Vec<String>,
headers: JsValue,
) -> Result<EpoxyWebSocket, EpoxyError> {
EpoxyWebSocket::connect(self, handlers, url, protocols).await
EpoxyWebSocket::connect(self, handlers, url, protocols, headers).await
}
pub async fn connect_tcp(