Work in progress moving SSB RPC handlers into javascript.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3657 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2021-09-06 17:50:38 +00:00
parent cfd5341a6b
commit cadcb236ee
9 changed files with 676 additions and 58 deletions

View File

@ -433,7 +433,7 @@ static void _test_socket(const char* exe_path)
" print('connected', s.isConnected);\n"
" print(s.peerName);\n"
" s.read(function(data) {\n"
" print('read', data.length);\n"
" print('read', data ? data.length : null);\n"
" });\n"
" s.write('GET / HTTP/1.0\\r\\n\\r\\n');\n"
"}).then(function() {\n"
@ -452,7 +452,7 @@ static void _test_socket(const char* exe_path)
"s2.connect('www.unprompted.com', 443).then(function() {\n"
" print('connected');\n"
" s2.read(function(data) {\n"
" print('read', data.length);\n"
" print('read', data ? data.length : null);\n"
" });\n"
" return s2.startTls();\n"
"}).then(function() {\n"