File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
examples/src/main/java/io/kubernetes/client/examples Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 25
25
import java .io .OutputStream ;
26
26
import java .io .Reader ;
27
27
28
+ /**
29
+ * This is a pretty low level, most people won't need to use WebSockets
30
+ * directly.
31
+ *
32
+ * If you do need to run it, you can run:
33
+ * mvn exec:java \
34
+ * -Dexec.mainClass=io.kubernetes.client.examples.WebSocketsExample \
35
+ * -Dexec.args=/api/v1/namespaces/default/pods/<podname>/attach?stdout=true
36
+ *
37
+ * Note that you'd think 'watch' calls were WebSockets, but you'd be wrong,
38
+ * they're straight HTTP GET calls.
39
+ */
28
40
public class WebSocketsExample {
29
41
public static void main (String ... args ) throws ApiException , IOException {
30
42
final ApiClient client = Config .defaultClient ();
@@ -47,4 +59,4 @@ public void textMessage(Reader in) {
47
59
}
48
60
});
49
61
}
50
- }
62
+ }
You can’t perform that action at this time.
0 commit comments