diff --git a/API.md b/API.md index e273519..87d771d 100644 --- a/API.md +++ b/API.md @@ -446,7 +446,7 @@ Sends a message to the WebSocket. Builds `java.net.http.Websocket` client. * `:uri` - the uri to request (required). - May be a string or map of `:schema` (required), `:host` (required), `:port`, `:path` and `:query` + May be a string or map of `:scheme` (required), `:host` (required), `:port`, `:path` and `:query` * `:headers` - a map of headers for the initial handshake` * `:client` - a client as produced by `client`. If not provided a default client will be used. * `:connect-timeout` Sets a timeout for establishing a WebSocket connection (in millis). diff --git a/src/babashka/http_client/websocket.clj b/src/babashka/http_client/websocket.clj index 3e6ed6f..89fba4b 100644 --- a/src/babashka/http_client/websocket.clj +++ b/src/babashka/http_client/websocket.clj @@ -10,7 +10,7 @@ (defn websocket "Builds `java.net.http.Websocket` client. * `:uri` - the uri to request (required). - May be a string or map of `:schema` (required), `:host` (required), `:port`, `:path` and `:query` + May be a string or map of `:scheme` (required), `:host` (required), `:port`, `:path` and `:query` * `:headers` - a map of headers for the initial handshake` * `:client` - a client as produced by `client`. If not provided a default client will be used. * `:connect-timeout` Sets a timeout for establishing a WebSocket connection (in millis).