{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1752657511,
"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",
"cid":"670653f05eb7ba431c9933231995410c",
"commit": {"type":"commit",
"time": 1447550665,
"time_ofs": 480,
"oid_tree": { "oid": "97749095ffe8983fd254c2d7322535a97b159dc0", "alias": []},
"oid":{ "oid": "974bed41b898ce7d9468eaa845007c3f4c879e81", "alias": []},
"msg": "test html add open close buttons",
"sig_commit": { "git_time": { "time": 1447550665, "offset": 480 }, "name": "Andy Green", "email": "andy.green@linaro.org", "md5": "4863edaebb4491aa6049a4d2d9c98c2c" },
"sig_author": { "git_time": { "time": 1447550665, "offset": 480 }, "name": "Andy Green", "email": "andy.green@linaro.org", "md5": "4863edaebb4491aa6049a4d2d9c98c2c" }},
"body": "test html add open close buttons\n\nSigned-off-by: Andy Green \u003candy.green@linaro.org\u003e\n"
,
"diff": "diff --git a/test-server/test.html b/test-server/test.html\nindex 4955884..b9e4861 100644\n--- a/test-server/test.html\n+++ b/test-server/test.html\n@@ -77,6 +77,24 @@ run.\n \u003c/table\u003e\n \u003c/section\u003e\n \n+\u003csection id\u003d\u0022ot\u0022 class\u003d\u0022group2\u0022\u003e\n+\u003cdiv class\u003d\u0022title\u0022\u003elibwebsockets \u0022open and close testing\u0022\u003c/div\u003e\n+\u003ctable\u003e\u003ctr\u003e\u003ctd\u003e\n+\u003ctable class\u003d\u0022content\u0022 width\u003d\u0022200px\u0022\u003e\n+\t\t\u003ctr\u003e\n+\t\t\u003ctd align\u003dcenter\u003e\u003cinput type\u003dbutton id\u003dot_open_btn value\u003d\u0022Open\u0022 onclick\u003d\u0022ot_open();\u0022 \u003e\u003c/td\u003e\n+\t\t\u003ctd align\u003dcenter\u003e\u003cinput type\u003dbutton id\u003dot_close_btn disabled value\u003d\u0022Close\u0022 onclick\u003d\u0022ot_close();\u0022 \u003e\u003c/td\u003e\n+\t\t\u003c/tr\u003e\n+\t\t\u003ctr\u003e\u003ctd colspan\u003d\u00222\u0022 id\u003dot_statustd align\u003dcenter class\u003d\u0022explain\u0022\u003e\u003cdiv id\u003dot_status\u003eNot initialized\u003c/div\u003e\u003c/td\u003e\u003c/tr\u003e\n+\t\u003c/tr\u003e\n+\u003c/table\u003e\n+\u003c/td\u003e\u003ctd class\u003d\u0022explain\u0022\u003e\n+To help with open and close testing, you can open and close a connection by hand using\n+ the buttons.\n+\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n+\u003c/section\u003e\n+\u003cbr\u003e\n+\n \u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd\u003e\n Looking for support? \u003ca href\u003d\u0022http://libwebsockets.org\u0022\u003ehttp://libwebsockets.org\u003c/a\u003e\u003cbr/\u003e\n Join the mailing list: \u003ca href\u003d\u0022http://ml.libwebsockets.org/mailman/listinfo/libwebsockets\u0022\u003ehttp://ml.libwebsockets.org/mailman/listinfo/libwebsockets\u003c/a\u003e\n@@ -276,6 +294,39 @@ function reset() {\n \tsocket_di.send(\u0022reset\u005cn\u0022);\n }\n \n+var socket_ot;\n+\n+function ot_open() {\n+\tif (typeof MozWebSocket !\u003d \u0022undefined\u0022) {\n+\t\tsocket_ot \u003d new MozWebSocket(get_appropriate_ws_url(),\n+\t\t\t\t \u0022dumb-increment-protocol\u0022);\n+\t} else {\n+\t\tsocket_ot \u003d new WebSocket(get_appropriate_ws_url(),\n+\t\t\t\t \u0022dumb-increment-protocol\u0022);\n+\t}\n+\ttry {\n+\t\tsocket_ot.onopen \u003d function() {\n+\t\t\tdocument.getElementById(\u0022ot_statustd\u0022).style.backgroundColor \u003d \u0022#40ff40\u0022;\n+\t\t\tdocument.getElementById(\u0022ot_status\u0022).textContent \u003d \u0022 websocket connection opened \u0022;\n+\t\t\tdocument.getElementById(\u0022ot_open_btn\u0022).disabled \u003d true;\n+\t\t\tdocument.getElementById(\u0022ot_close_btn\u0022).disabled \u003d false;\n+\t\t} \n+\n+\t\tsocket_ot.onclose \u003d function(){\n+\t\t\tdocument.getElementById(\u0022ot_statustd\u0022).style.backgroundColor \u003d \u0022#ff4040\u0022;\n+\t\t\tdocument.getElementById(\u0022ot_status\u0022).textContent \u003d \u0022 websocket connection CLOSED \u0022;\n+\t\t\tdocument.getElementById(\u0022ot_open_btn\u0022).disabled \u003d false;\n+\t\t\tdocument.getElementById(\u0022ot_close_btn\u0022).disabled \u003d true;\n+\n+\t\t}\n+\t} catch(exception) {\n+\t\talert('\u003cp\u003eError' + exception); \n+\t}\n+}\n+\n+function ot_close() {\n+\tsocket_ot.close();\n+}\n \n /* lws-mirror protocol */\n \n","s":{"c":1752657511,"u": 1428}}
],"g": 1972,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}