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

Method pong

java/lib/src/main/java/io/github/ccxt/exchanges/pro/WeexCore.java:2239–2257  ·  view source on GitHub ↗
(Client client, Object message)

Source from the content-addressed store, hash-verified

2237 }
2238
2239 public java.util.concurrent.CompletableFuture<Object> pong(Client client, Object message)
2240 {
2241
2242 return java.util.concurrent.CompletableFuture.supplyAsync(() -> {
2243
2244 //
2245 // { "event": "ping", "time": "1776078750000" } - public
2246 //
2247 // { "type": "ping", "time": "1776172740000" } - private
2248 //
2249 Object response = new java.util.HashMap<String, Object>() {{
2250 put( "id", WeexCore.this.requestId() );
2251 put( "method", "PONG" );
2252 }};
2253 (client.send(response)).join();
2254 return null;
2255 });
2256
2257 }
2258
2259 public void handlePing(Client client, Object message)
2260 {

Callers 1

handlePingMethod · 0.95

Calls 2

requestIdMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected