Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Rochat (0.16 sec)

  1. docs_src/websockets/tutorial003.py

    from fastapi import FastAPI, WebSocket, WebSocketDisconnect
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    html = """
    <!DOCTYPE html>
    <html>
        <head>
            <title>Chat</title>
        </head>
        <body>
            <h1>WebSocket Chat</h1>
            <h2>Your ID: <span id="ws-id"></span></h2>
            <form action="" onsubmit="sendMessage(event)">
                <input type="text" id="messageText" autocomplete="off"/>
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Aug 09 13:52:19 GMT 2020
    - 2.5K bytes
    - Viewed (0)
  2. docs_src/websockets/tutorial002_an_py310.py

        WebSocketException,
        status,
    )
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    html = """
    <!DOCTYPE html>
    <html>
        <head>
            <title>Chat</title>
        </head>
        <body>
            <h1>WebSocket Chat</h1>
            <form action="" onsubmit="sendMessage(event)">
                <label>Item ID: <input type="text" id="itemId" autocomplete="off" value="foo"/></label>
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_websockets/test_tutorial003.py

            data1 = connection.receive_text()
            assert data1 == client1_says
            connection_two.close()
            data1 = connection.receive_text()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jul 29 09:26:07 GMT 2021
    - 872 bytes
    - Viewed (0)
  4. tests/test_tutorial/test_websockets/test_tutorial003_py39.py

            data1 = connection.receive_text()
            assert data1 == client1_says
            connection_two.close()
            data1 = connection.receive_text()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  5. docs/en/docs/css/custom.css

      /* \00A0 is a non-breaking space
            to make the mark be on the same line as the link
        */
      content: "\00A0↪";
    }
    
    .shadow {
      box-shadow: 5px 5px 10px #999;
    }
    
    /* Give space to lower icons so Gitter chat doesn't get on top of them */
    .md-footer-meta {
      padding-bottom: 2em;
    }
    
    .user-list {
      display: flex;
      flex-wrap: wrap;
      margin-bottom: 2rem;
    }
    
    .user-list-center {
    CSS
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Jan 28 09:53:45 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  6. docs/de/docs/advanced/websockets.md

    * Schließen Sie dann einen der Tabs.
    
    Das wird die Ausnahme `WebSocketDisconnect` auslösen und alle anderen Clients erhalten eine Nachricht wie:
    
    ```
    Client #1596980209979 left the chat
    ```
    
    !!! tip "Tipp"
        Die obige Anwendung ist ein minimales und einfaches Beispiel, das zeigt, wie Nachrichten verarbeitet und an mehrere WebSocket-Verbindungen gesendet werden.
    
    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)
  7. docs_src/websockets/tutorial003_py39.py

    from fastapi import FastAPI, WebSocket, WebSocketDisconnect
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    html = """
    <!DOCTYPE html>
    <html>
        <head>
            <title>Chat</title>
        </head>
        <body>
            <h1>WebSocket Chat</h1>
            <h2>Your ID: <span id="ws-id"></span></h2>
            <form action="" onsubmit="sendMessage(event)">
                <input type="text" id="messageText" autocomplete="off"/>
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/websockets.md

    * Write messages from them.
    * Then close one of the tabs.
    
    That will raise the `WebSocketDisconnect` exception, and all the other clients will receive a message like:
    
    ```
    Client #1596980209979 left the chat
    ```
    
    !!! tip
        The app above is a minimal and simple example to demonstrate how to handle and broadcast messages to several WebSocket connections.
    
    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)
  9. docs/zh/docs/advanced/websockets.md

        ```
    
    尝试以下操作:
    
    * 使用多个浏览器选项卡打开应用程序。
    * 从这些选项卡中发送消息。
    * 然后关闭其中一个选项卡。
    
    这将引发 `WebSocketDisconnect` 异常,并且所有其他客户端都会收到类似以下的消息:
    
    ```
    Client #1596980209979 left the chat
    ```
    
    !!! tip
        上面的应用程序是一个最小和简单的示例,用于演示如何处理和向多个 WebSocket 连接广播消息。
    
        但请记住,由于所有内容都在内存中以单个列表的形式处理,因此它只能在进程运行时工作,并且只能使用单个进程。
    
    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)
  10. docs/em/docs/advanced/websockets.md

    ```
    
    🔄 ⚫️ 👅:
    
    * 📂 📱 ⏮️ 📚 🖥 📑.
    * ✍ 📧 ⚪️➡️ 👫.
    * ⤴️ 🔐 1️⃣ 📑.
    
    👈 🔜 🤚 `WebSocketDisconnect` ⚠, &amp; 🌐 🎏 👩‍💻 🔜 📨 📧 💖:
    
    ```
    Client #1596980209979 left the chat
    ```
    
    !!! tip
        📱 🔛 ⭐ &amp; 🙅 🖼 🎦 ❔ 🍵 &amp; 📻 📧 📚 *️⃣ 🔗.
    
        ✋️ ✔️ 🤯 👈, 🌐 🍵 💾, 👁 📇, ⚫️ 🔜 🕴 👷 ⏪ 🛠️ 🏃, &amp; 🔜 🕴 👷 ⏮️ 👁 🛠️.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.8K bytes
    - Viewed (0)
Back to top