- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 249 for Websocket (0.14 sec)
-
pkg/test/echo/common/websocket.go
) // IsWebSocketRequest indicates whether the request contains the header that triggers an upgrade to the WebSocket protocol. func IsWebSocketRequest(r *http.Request) bool { return r.Header.Get(webSocketHeaderKey) == webSocketHeaderValue } // SetWebSocketHeader sets the header on the request which will trigger an upgrade to the WebSocket protocol. func SetWebSocketHeader(headers http.Header) { headers.Set(webSocketHeaderKey, webSocketHeaderValue)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 29 20:42:01 UTC 2020 - 1.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/proxy/websocket.go
) const ( // idleTimeout is the read/write deadline set for websocket server connection. Reading // or writing the connection will return an i/o timeout if this deadline is exceeded. // Currently, we use the same value as the kubelet websocket server. defaultIdleConnectionTimeout = 4 * time.Hour // Deadline for writing errors to the websocket connection before io/timeout. writeErrorDeadline = 10 * time.Second )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 6.2K bytes - Viewed (0) -
pkg/test/echo/server/forwarder/websocket.go
// limitations under the License. package forwarder import ( "bytes" "context" "fmt" "net" "strings" "time" "github.com/gorilla/websocket" "istio.io/istio/pkg/test/echo" "istio.io/istio/pkg/test/echo/common" "istio.io/istio/pkg/test/echo/proto" ) var _ protocol = &websocketProtocol{} type websocketProtocol struct { e *executor }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 11 16:27:16 UTC 2022 - 3.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/WebSocket.kt
* limitations under the License. */ package okhttp3 import okio.ByteString /** * A non-blocking interface to a web socket. Use the [factory][WebSocket.Factory] to create * instances; usually this is [OkHttpClient]. * * ## Web Socket Lifecycle * * Upon normal operation each web socket progresses through a sequence of states: *
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.3K bytes - Viewed (0) -
tests/testdata/config/rule-websocket-route.yaml
metadata: name: websocket namespace: testns spec: host: websocket.test.istio.io subsets: - name: v1 labels: version: v1 --- apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: websocket-route namespace: testns spec: hosts: - websocket.test.istio.io http: - match: - headers: testwebsocket:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Jan 19 04:56:49 UTC 2019 - 1.4K bytes - Viewed (0) -
docs/en/docs/advanced/websockets.md
# WebSockets You can use <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API" class="external-link" target="_blank">WebSockets</a> with **FastAPI**. ## Install `WebSockets` First you need to install `WebSockets`: <div class="termy"> ```console $ pip install websockets ---> 100% ``` </div> ## WebSockets client ### In production
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu May 02 22:37:31 UTC 2024 - 6.2K bytes - Viewed (0) -
docs/de/docs/reference/websockets.md
# WebSockets Bei der Definition von WebSockets deklarieren Sie normalerweise einen Parameter vom Typ `WebSocket` und können damit Daten vom Client lesen und an ihn senden. Er wird direkt von Starlette bereitgestellt, Sie können ihn aber von `fastapi` importieren: ```python from fastapi import WebSocket ``` !!! tip "Tipp"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 18:16:27 UTC 2024 - 1.8K bytes - Viewed (0) -
docs/de/docs/advanced/websockets.md
# WebSockets Sie können <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API" class="external-link" target="_blank">WebSockets</a> mit **FastAPI** verwenden. ## `WebSockets` installieren Zuerst müssen Sie `WebSockets` installieren: <div class="termy"> ```console $ pip install websockets ---> 100% ``` </div> ## WebSockets-Client ### In Produktion
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 20:17:58 UTC 2024 - 6.9K bytes - Viewed (0) -
docs/en/docs/reference/websockets.md
# WebSockets When defining WebSockets, you normally declare a parameter of type `WebSocket` and with it you can read data from the client and send data to it. It is provided directly by Starlette, but you can import it from `fastapi`: ```python from fastapi import WebSocket ``` !!! tip
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 1.6K bytes - Viewed (0) -
tests/test_tutorial/test_websockets/test_tutorial002.py
message = "Message one" websocket.send_text(message) data = websocket.receive_text() assert data == "Session cookie or query token value is: some-token" data = websocket.receive_text() assert data == f"Message text was: {message}, for item ID: bar" message = "Message two" websocket.send_text(message)
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sun Nov 13 14:26:09 UTC 2022 - 3.6K bytes - Viewed (0)