Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 2,378 for connectTo (0.31 sec)

  1. docs_src/websockets/tutorial003.py

        async def broadcast(self, message: str):
            for connection in self.active_connections:
                await connection.send_text(message)
    
    
    manager = ConnectionManager()
    
    
    @app.get("/")
    async def get():
        return HTMLResponse(html)
    
    
    @app.websocket("/ws/{client_id}")
    async def websocket_endpoint(websocket: WebSocket, client_id: int):
        await manager.connect(websocket)
        try:
            while True:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Aug 09 13:52:19 UTC 2020
    - 2.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/MessagingClient.java

    /**
     * A {@code MessagingClient} maintains a single bi-directional uni-cast object connection with some peer.
     */
    @ServiceScope(Scope.Global.class)
    public interface MessagingClient {
        /**
         * Creates a connection to the given address. Blocks until the connection has been established.
         *
         * @param address The address to connect to.
         */
        ObjectConnection getConnection(Address address);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. docs_src/websockets/tutorial003_py39.py

        async def broadcast(self, message: str):
            for connection in self.active_connections:
                await connection.send_text(message)
    
    
    manager = ConnectionManager()
    
    
    @app.get("/")
    async def get():
        return HTMLResponse(html)
    
    
    @app.websocket("/ws/{client_id}")
    async def websocket_endpoint(websocket: WebSocket, client_id: int):
        await manager.connect(websocket)
        try:
            while True:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MessageHubBackedClientTest.groovy

    import spock.lang.Specification
    
    class MessageHubBackedClientTest extends Specification {
        final OutgoingConnector connector = Mock()
        final ExecutorFactory executorFactory = Mock()
        final MessageHubBackedClient client = new MessageHubBackedClient(connector, executorFactory)
    
        def "creates connection and cleans up on stop"() {
            Address address = Stub()
            ConnectCompletion connectCompletion = Mock()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. pilot/pkg/xds/debug.go

    		// We can't guarantee the Pilot we are connected to has a connection to the proxy we requested
    		// There isn't a great way around this, but for debugging purposes its suitable to have the caller retry.
    		w.WriteHeader(http.StatusNotFound)
    		_, _ = w.Write([]byte("Proxy not connected to this Pilot instance. It may be connected to another instance.\n"))
    		return
    	}
    	var connections []*Connection
    	if con != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  6. docs/features/connections.md

    ### [Connections](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-connection/)
    
    When you request a URL with OkHttp, here's what it does:
    
     1. It uses the URL and configured OkHttpClient to create an **address**. This address specifies how we'll connect to the webserver.
     2. It attempts to retrieve a connection with that address from the **connection pool**.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Feb 21 03:33:59 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

    import okhttp3.internal.assertThreadHoldsLock
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.concurrent.Task
    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.connection.Exchange
    import okhttp3.internal.connection.RealCall
    import okhttp3.internal.okHttpName
    import okhttp3.internal.ws.WebSocketProtocol.CLOSE_CLIENT_GOING_AWAY
    import okhttp3.internal.ws.WebSocketProtocol.CLOSE_MESSAGE_MAX
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  8. pilot/pkg/xds/ads.go

    func newConnection(peerAddr string, stream DiscoveryStream) *Connection {
    	return &Connection{
    		Connection: xds.NewConnection(peerAddr, stream),
    	}
    }
    
    func (conn *Connection) Initialize(node *core.Node) error {
    	return conn.s.initConnection(node, conn, conn.ids)
    }
    
    func (conn *Connection) Close() {
    	conn.s.closeConnection(conn)
    }
    
    func (conn *Connection) Watcher() xds.Watcher {
    	return conn.proxy
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/EventListener.kt

      }
    
      /**
       * Invoked after a connection has been acquired for the `call`.
       *
       * This can be invoked more than 1 time for a single [Call]. For example, if the response
       * to the [Call.request] is a redirect to a different address.
       */
      open fun connectionAcquired(
        call: Call,
        connection: Connection,
      ) {
      }
    
      /**
       * Invoked after a connection has been released for the `call`.
       *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r56/TestLauncherDebugTestsCrossVersionTest.groovy

                }
            """
        }
    
        def "build fails if debugger is not ready"() {
            setup:
            // port is assigned but not connected
            def port = jdwpClient.port
    
            when:
            withConnection { connection ->
                connection.newTestLauncher()
                    .withJvmTestClasses("example.MyTest")
                    .debugTestsOn(port)
                    .run()
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top