Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1752721615, "reponame":"libwebsockets", "desc":"libwebsockets lightweight C networking library", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets", "f":3, "items": [ { "schema":"libjg2-1", "oid":{ "oid": "83eeb76d665d1421f1b212ad46ca751cc78db39a", "alias": []},"tree": [ { "name": "CMakeLists.txt","mode": "33188", "size":1348}, { "name": "README.md","mode": "33188", "size":2574}, { "name": "binance-ss.c","mode": "33188", "size":4997}, { "name": "example-policy.json","mode": "33188", "size":1989}, { "name": "main.c","mode": "33188", "size":2226}],"s":{"c":1752721615,"u": 710}} ,{"schema":"libjg2-1", "cid":"428c1a917d50dc600213217dc2c04bbd", "oid":{ "oid": "83eeb76d665d1421f1b212ad46ca751cc78db39a", "alias": []},"blobname": "minimal-examples/client/binance/README.md", "blob": "# lws minimal secure streams binance\n\nThis is a Secure Streams version of minimal-ws-client-binance.\n\n\u0022policy.json\u0022 contains all the information about endpoints, protocols and\nconnection validation, tagged by streamtype name.\n\nThe example tries to load it from the cwd, it lives in\n./minimal-examples/secure-streams/minimal-secure-streams-binance dir, so\neither run it from there, or copy the policy.json to your cwd. It's also\npossible to put the policy json in the code as a string and pass that at\ncontext creation time.\n\nThe secure stream object represents a nailed-up connection that outlives any\nsingle socket connection, and can manage reconnections / retries according to\nthe policy to keep the connection nailed up automatically.\n\nSecure Streams provides the same simplified communication api without any\nprotocol dependencies.\n\n## build\n\nLws must have been built with `LWS_ROLE_WS\u003d1`, `LWS_WITH_SECURE_STREAMS\u003d1`, and\n`LWS_WITHOUT_EXTENSIONS\u003d0`\n\n```\n $ cmake . \u0026\u0026 make\n```\n\n## Commandline Options\n\nOption|Meaning\n---|---\n-d|Set logging verbosity\n\n## usage\n\n```\n$ ./bin/lws-minimal-ws-client-binance \n[2021/08/15 06:42:40:8409] U: LWS minimal Secure Streams binance client\n[2021/08/15 06:42:40:8410] N: LWS: 4.2.99-v4.2.0-156-g8f352f65e8, NET CLI SRV H1 H2 WS SS-JSON-POL SSPROX ConMon FLTINJ IPV6-on\n[2021/08/15 06:42:40:8410] N: ++ [495958|wsi|0|pipe] (1)\n[2021/08/15 06:42:40:8411] N: ++ [495958|vh|0|netlink] (1)\n[2021/08/15 06:42:40:8433] N: ++ [495958|vh|1|digicert||-1] (2)\n[2021/08/15 06:42:40:8471] N: ++ [495958|wsiSScli|0|binance] (1)\n[2021/08/15 06:42:40:8471] N: [495958|wsiSScli|0|binance]: lws_ss_check_next_state_ss: (unset) -\u003e LWSSSCS_CREATING\n[2021/08/15 06:42:40:8472] N: [495958|wsiSScli|0|binance]: lws_ss_check_next_state_ss: LWSSSCS_CREATING -\u003e LWSSSCS_CONNECTING\n[2021/08/15 06:42:40:8472] N: ++ [495958|wsicli|0|WS/h1/fstream.binance.com/([495958|wsiSScli|0|binance])] (1)\n[2021/08/15 06:42:41:8802] N: [495958|wsiSScli|0|binance]: lws_ss_check_next_state_ss: LWSSSCS_CONNECTING -\u003e LWSSSCS_CONNECTED\n[2021/08/15 06:42:42:8803] N: sul_hz_cb: price: min: 4669185¢, max: 4672159¢, avg: 4670061¢, (53 prices/s)\n[2021/08/15 06:42:42:8803] N: sul_hz_cb: elatency: min: 131ms, max: 292ms, avg: 154ms, (53 msg/s)\n[2021/08/15 06:42:43:8803] N: sul_hz_cb: price: min: 4669646¢, max: 4672159¢, avg: 4669953¢, (34 prices/s)\n[2021/08/15 06:42:43:8803] N: sul_hz_cb: elatency: min: 130ms, max: 149ms, avg: 133ms, (34 msg/s)\n[2021/08/15 06:42:44:8804] N: sul_hz_cb: price: min: 4669455¢, max: 4672159¢, avg: 4669904¢, (26 prices/s)\n...\n```\n","s":{"c":1752721615,"u": 150}} ],"g": 2320,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 1, "si": 0, "db":0, "di":1, "sat":0, "lfc": "0000"}