Class WebSocketsExample

java.lang.Object
io.kubernetes.client.examples.WebSocketsExample

public class WebSocketsExample extends Object
This is a pretty low level, most people won't need to use WebSockets directly.

If you do need to run it, you can run: mvn exec:java \ -Dexec.mainClass=io.kubernetes.client.examples.WebSocketsExample \ -Dexec.args=/api/v1/namespaces/default/pods//attach?stdout=true

Note that you'd think 'watch' calls were WebSockets, but you'd be wrong, they're straight HTTP GET calls.

  • Constructor Details

    • WebSocketsExample

      public WebSocketsExample()
  • Method Details

    • main

      public static void main(String... args) throws io.kubernetes.client.openapi.ApiException, IOException
      Throws:
      io.kubernetes.client.openapi.ApiException
      IOException