Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for javascript (0.16 sec)

  1. docs/en/docs/advanced/websockets.md

    Or you might have any other way to communicate with the WebSocket endpoint.
    
    ---
    
    But for this example, we'll use a very simple HTML document with some JavaScript, all inside a long string.
    
    This, of course, is not optimal and you wouldn't use it for production.
    
    In production you would have one of the options above.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/websockets.md

    在您的生产系统中,您可能使用现代框架(如React、Vue.js或Angular)创建了一个前端。
    
    要使用 WebSockets 与后端进行通信,您可能会使用前端的工具。
    
    或者,您可能有一个原生移动应用程序,直接使用原生代码与 WebSocket 后端通信。
    
    或者,您可能有其他与 WebSocket 终端通信的方式。
    
    ---
    
    但是,在本示例中,我们将使用一个非常简单的HTML文档,其中包含一些JavaScript,全部放在一个长字符串中。
    
    当然,这并不是最优的做法,您不应该在生产环境中使用它。
    
    在生产环境中,您应该选择上述任一选项。
    
    但这是一种专注于 WebSockets 的服务器端并提供一个工作示例的最简单方式:
    
    ```Python hl_lines="2  6-38  41-43"
    {!../../../docs_src/websockets/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 6K bytes
    - Viewed (0)
  3. docs/de/docs/advanced/websockets.md

    Oder Sie haben andere Möglichkeiten, mit dem WebSocket-Endpunkt zu kommunizieren.
    
    ---
    
    Für dieses Beispiel verwenden wir jedoch ein sehr einfaches HTML-Dokument mit etwas JavaScript, alles in einem langen String.
    
    Das ist natürlich nicht optimal und man würde das nicht in der Produktion machen.
    
    In der Produktion hätten Sie eine der oben genannten Optionen.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:17:58 GMT 2024
    - 6.9K bytes
    - Viewed (0)
Back to top