MCPcopy Index your code
hub / github.com/ccxt/ccxt / onOpen

Method onOpen

java/lib/src/main/java/io/github/ccxt/ws/WsClient.java:379–390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

377 }
378
379 void onOpen() {
380 if (this.verbose) {
381 System.out.println(getFormattedDate() + "WsClient connected: " + this.url);
382 }
383 this.isConnected = true;
384 this.connectionEstablished = System.currentTimeMillis();
385 this.lastPong = this.connectionEstablished;
386 this.connected.complete(true);
387
388 // Start ping loop on a virtual thread; keep a reference so close() can interrupt it.
389 this.pingThread = Thread.ofVirtual().start(this::pingLoop);
390 }
391
392 void onMessage(Object message) {
393 // Any received frame counts as keepalive — many exchanges (lbank,

Callers 1

channelRead0Method · 0.45

Calls 2

getFormattedDateMethod · 0.95
startMethod · 0.80

Tested by

no test coverage detected