Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for goodbye (0.12 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java

      @Override public void onOpen(WebSocket webSocket, Response response) {
        webSocket.send("Hello...");
        webSocket.send("...World!");
        webSocket.send(ByteString.decodeHex("deadbeef"));
        webSocket.close(1000, "Goodbye, World!");
      }
    
      @Override public void onMessage(WebSocket webSocket, String text) {
        System.out.println("MESSAGE: " + text);
      }
    
      @Override public void onMessage(WebSocket webSocket, ByteString bytes) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 04 11:40:21 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

        server.webSocket!!.finishReader()
        server.webSocket!!.close(1000, "Goodbye!")
        assertThat(client.processNextFrame()).isFalse()
        client.listener.assertClosing(1000, "Goodbye!")
        client.webSocket!!.finishReader()
        server.listener.assertClosed(1000, "Hello!")
        client.listener.assertClosed(1000, "Goodbye!")
      }
    
      @Test
      fun clientCloseThenMethodsReturnFalse() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 01:59:58 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  3. src/bytes/example_test.go

    	// Output:
    	// -gopher
    	// go-gopher!
    	// go-gopher!567
    }
    
    func ExampleTrimPrefix() {
    	var b = []byte("Goodbye,, world!")
    	b = bytes.TrimPrefix(b, []byte("Goodbye,"))
    	b = bytes.TrimPrefix(b, []byte("See ya,"))
    	fmt.Printf("Hello%s", b)
    	// Output: Hello, world!
    }
    
    func ExampleTrimSpace() {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 07 17:22:36 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        // Initiate a close on the client, which will schedule a hard cancel in 500 ms.
        val closeAtNanos = System.nanoTime()
        webSocket.close(1000, "goodbye", 500L)
        serverListener.assertClosing(1000, "goodbye")
    
        // Confirm that the hard cancel occurred after 500 ms.
        clientListener.assertFailure()
        val elapsedUntilFailure = System.nanoTime() - closeAtNanos
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. doc/go1.17_spec.html

    for a <code>...T</code> parameter. In this case no new slice is created.
    </p>
    
    <p>
    Given the slice <code>s</code> and call
    </p>
    
    <pre>
    s := []string{"James", "Jasmine"}
    Greeting("goodbye:", s...)
    </pre>
    
    <p>
    within <code>Greeting</code>, <code>who</code> will have the same value as <code>s</code>
    with the same underlying array.
    </p>
    
    
    <h3 id="Operators">Operators</h3>
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 10 18:25:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  6. doc/go_spec.html

    for a <code>...T</code> parameter. In this case no new slice is created.
    </p>
    
    <p>
    Given the slice <code>s</code> and call
    </p>
    
    <pre>
    s := []string{"James", "Jasmine"}
    Greeting("goodbye:", s...)
    </pre>
    
    <p>
    within <code>Greeting</code>, <code>who</code> will have the same value as <code>s</code>
    with the same underlying array.
    </p>
    
    <h3 id="Instantiations">Instantiations</h3>
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 00:58:01 UTC 2024
    - 282.5K bytes
    - Viewed (0)
Back to top