[{"data":1,"prerenderedAt":433,"buildId":434},["ShallowReactive",2],{"content-page:\u002Fen\u002Fdocs\u002Fwebsocket":3},{"page":4,"isFallback":432},{"id":5,"title":6,"availableLocales":7,"body":8,"description":420,"extension":421,"layout":422,"locale":423,"meta":424,"navigation":425,"path":426,"seo":427,"source":428,"sourceLocale":7,"stem":429,"updated":430,"__hash__":431},"pages\u002Fen\u002Fdocs\u002Fwebsocket.md","Wolfx WebSocket API",null,{"type":9,"value":10,"toc":405},"minimark",[11,16,29,33,40,44,54,61,67,80,83,87,93,251,266,269,275,279,284,308,315,368,375],[12,13,15],"h2",{"id":14},"how-updates-work","How updates work",[17,18,19,20,24,25,28],"p",{},"The server sends updated JSON whenever a feed you subscribe to changes. It sends a ",[21,22,23],"code",{},"heartbeat"," when you connect and every minute thereafter. We recommend replying with ",[21,26,27],{},"ping",", though the reply is optional.",[12,30,32],{"id":31},"reusing-connections","Reusing connections",[17,34,35,36,39],{},"Reuse existing connections and avoid reconnecting in rapid succession. To receive updates from several sources over one connection, use the ",[21,37,38],{},"all_eew"," channel.",[12,41,43],{"id":42},"aggregate-subscriptions-and-filters","Aggregate subscriptions and filters",[45,46,52],"pre",{"className":47,"code":49,"language":50,"meta":51},[48],"language-text","wss:\u002F\u002Fws-api.wolfx.jp\u002Fall_eew\n","text","",[21,53,49],{"__ignoreMap":51},[17,55,56,57,60],{},"The optional ",[21,58,59],{},"exclude"," query parameter takes a comma-separated list of feeds to omit. Use the feed names from the individual subscription URL paths.",[45,62,65],{"className":63,"code":64,"language":50,"meta":51},[48],"wss:\u002F\u002Fws-api.wolfx.jp\u002Fall_eew?exclude=cenc_eew\nwss:\u002F\u002Fws-api.wolfx.jp\u002Fall_eew?exclude=sc_eew,fj_eew,cq_eew\n",[21,66,64],{"__ignoreMap":51},[17,68,69,70,72,73,75,76,79],{},"Set ",[21,71,59],{}," when connecting. It applies only to automatic updates on that ",[21,74,38],{}," connection. Reconnect to change the list. If a source name is unknown, the server returns ",[21,77,78],{},"HTTP 400"," during the WebSocket handshake.",[17,81,82],{},"You can still request cached JSON for an excluded public source by sending its query command over the same connection.",[12,84,86],{"id":85},"individual-subscriptions-and-query-commands","Individual subscriptions and query commands",[17,88,89,90,92],{},"Connect to an individual feed below to receive its updates. To retrieve its cached JSON, send the corresponding command over that connection or over ",[21,91,38],{},".",[94,95,96,112],"table",{},[97,98,99],"thead",{},[100,101,102,106,109],"tr",{},[103,104,105],"th",{},"Source",[103,107,108],{},"Subscription endpoint",[103,110,111],{},"Query command",[113,114,115,131,146,161,176,191,206,221,236],"tbody",{},[100,116,117,121,126],{},[118,119,120],"td",{},"Sichuan earthquake early warnings",[118,122,123],{},[21,124,125],{},"wss:\u002F\u002Fws-api.wolfx.jp\u002Fsc_eew",[118,127,128],{},[21,129,130],{},"query_sceew",[100,132,133,136,141],{},[118,134,135],{},"Japan Meteorological Agency (JMA) Earthquake Early Warnings",[118,137,138],{},[21,139,140],{},"wss:\u002F\u002Fws-api.wolfx.jp\u002Fjma_eew",[118,142,143],{},[21,144,145],{},"query_jmaeew",[100,147,148,151,156],{},[118,149,150],{},"Fujian earthquake early warnings",[118,152,153],{},[21,154,155],{},"wss:\u002F\u002Fws-api.wolfx.jp\u002Ffj_eew",[118,157,158],{},[21,159,160],{},"query_fjeew",[100,162,163,166,171],{},[118,164,165],{},"Chongqing earthquake early warnings",[118,167,168],{},[21,169,170],{},"wss:\u002F\u002Fws-api.wolfx.jp\u002Fcq_eew",[118,172,173],{},[21,174,175],{},"query_cqeew",[100,177,178,181,186],{},[118,179,180],{},"China Earthquake Networks Center (CENC) earthquake early warnings",[118,182,183],{},[21,184,185],{},"wss:\u002F\u002Fws-api.wolfx.jp\u002Fcenc_eew",[118,187,188],{},[21,189,190],{},"query_cenceew",[100,192,193,196,201],{},[118,194,195],{},"CENC earthquake information",[118,197,198],{},[21,199,200],{},"wss:\u002F\u002Fws-api.wolfx.jp\u002Fcenc_eqlist",[118,202,203],{},[21,204,205],{},"query_cenceqlist",[100,207,208,211,216],{},[118,209,210],{},"JMA earthquake information",[118,212,213],{},[21,214,215],{},"wss:\u002F\u002Fws-api.wolfx.jp\u002Fjma_eqlist",[118,217,218],{},[21,219,220],{},"query_jmaeqlist",[100,222,223,226,231],{},[118,224,225],{},"JMA tsunami information",[118,227,228],{},[21,229,230],{},"wss:\u002F\u002Fws-api.wolfx.jp\u002Fjma_tsunami",[118,232,233],{},[21,234,235],{},"query_jmatsunami",[100,237,238,241,246],{},[118,239,240],{},"JMA Nankai Trough and Hokkaido\u002FSanriku information",[118,242,243],{},[21,244,245],{},"wss:\u002F\u002Fws-api.wolfx.jp\u002Fjma_special_eq",[118,247,248],{},[21,249,250],{},"query_jmaspecialeq",[17,252,253,254,259,260,92],{},"For the JSON fields in each feed, see the ",[255,256,258],"a",{"href":257},"\u002Fen\u002Fdocs\u002Fopen-api","Open API reference"," and the ",[255,261,265],{"href":262,"rel":263},"https:\u002F\u002Fapi.wolfx.jp",[264],"nofollow","API homepage",[17,267,268],{},"Connection check",[45,270,273],{"className":271,"code":272,"language":50,"meta":51},[48],"ping\n",[21,274,272],{"__ignoreMap":51},[12,276,278],{"id":277},"websocket-message-format","WebSocket message format",[280,281,283],"h3",{"id":282},"common-field","Common field",[94,285,286,296],{},[97,287,288],{},[100,289,290,293],{},[103,291,292],{},"Field",[103,294,295],{},"Description",[113,297,298],{},[100,299,300,305],{},[118,301,302],{},[21,303,304],{},"type",[118,306,307],{},"Message type or data source (string)",[280,309,311,312,314],{"id":310},"heartbeat-heartbeat","Heartbeat (",[21,313,23],{},")",[94,316,317,325],{},[97,318,319],{},[100,320,321,323],{},[103,322,292],{},[103,324,295],{},[113,326,327,338,348,358],{},[100,328,329,333],{},[118,330,331],{},[21,332,304],{},[118,334,335,337],{},[21,336,23],{}," (string)",[100,339,340,345],{},[118,341,342],{},[21,343,344],{},"ver",[118,346,347],{},"Server version (number)",[100,349,350,355],{},[118,351,352],{},[21,353,354],{},"id",[118,356,357],{},"UUID for this connection (string)",[100,359,360,365],{},[118,361,362],{},[21,363,364],{},"timestamp",[118,366,367],{},"Time the message was sent, in milliseconds (string)",[280,369,371,372,314],{"id":370},"reply-to-ping-pong","Reply to ping (",[21,373,374],{},"pong",[94,376,377,385],{},[97,378,379],{},[100,380,381,383],{},[103,382,292],{},[103,384,295],{},[113,386,387,397],{},[100,388,389,393],{},[118,390,391],{},[21,392,304],{},[118,394,395,337],{},[21,396,374],{},[100,398,399,403],{},[118,400,401],{},[21,402,364],{},[118,404,367],{},{"title":51,"searchDepth":406,"depth":406,"links":407},3,[408,410,411,412,413],{"id":14,"depth":409,"text":15},2,{"id":31,"depth":409,"text":32},{"id":42,"depth":409,"text":43},{"id":85,"depth":409,"text":86},{"id":277,"depth":409,"text":278,"children":414},[415,416,418],{"id":282,"depth":406,"text":283},{"id":310,"depth":406,"text":417},"Heartbeat (heartbeat)",{"id":370,"depth":406,"text":419},"Reply to ping (pong)","Subscribe to earthquake and tsunami feeds, filter the all_eew stream, and request cached JSON using text commands.","md","docs","en",{},true,"\u002Fen\u002Fdocs\u002Fwebsocket",{"title":6,"description":420},"wsapi_en.html","en\u002Fdocs\u002Fwebsocket","2026-11-25","8n9uD--5ZlC0TkK0iuIn8BH5MRHxUqC526Am7aUmPkE",false,1796011138011,"a87befb7-cf32-4711-bc86-5a0889986ce9"]