Comments (6)
Yes, it's totally possible. The commands are the same as ZeroFrame API. Here is an example, standalone client:
HelloZeroNet/ZeroNet#1137 (comment)
from documentation.
Very cool, thanks! I'll make a note about it in the docs somewhere.
This means we can make libraries for third-party programs to store data on ZeroNet, and then have that data be readable in a nice UI in the browser!
from documentation.
Is it possible to retrieve a cert and change user to that cert entirely over the WebSocket API?
Edit: Would it possibly have to be a clearnet request for ZeroID?
Yes, it is!
from documentation.
Note: Document that IP's are accepted in v>XXX.
from documentation.
Note: Document how Multiuser uses cookies in the WebSocket handshake.
Example of a python2 script that can talk to the Multiuser plugin:
import urllib2
import re
import json
import time
import websocket
req = urllib2.Request("http://127.0.0.1:43110/1HeLLo4uzjaLetFx6NH3PMwFP3qbRbTf3D/", headers={"Accept" : "text/html"})
wrapper_body = urllib2.urlopen(req).read()
wrapper_key = re.search('wrapper_key = "(.*?)"', wrapper_body).group(1)
wrapper_nonce = re.search('wrapper_nonce = "(.*?)"', wrapper_body).group(1)
#
ws = websocket.create_connection("ws://127.0.0.1:43110/Websocket?wrapper_key=%s" % wrapper_key,
cookie="master_address=1JtHVmhWqmvK6KLbVcQ8RT2oEhW9TLAmRv")
ws.send(json.dumps({"cmd":"userLoginForm","params":{},"id":-2}))
res = ws.recv()
print res
from documentation.
@anoadragon453 I created ZeroFrame WebSocket API for JavaScript. I'm currently also creating clients for other languages. See HelloZeroNet/ZeroNet#1289 (comment) for details.
from documentation.
Related Issues (20)
- Is Documentation accessible to everyone ? HOT 1
- Description of PoW based ID providers needed HOT 1
- Missing logo on english documentation HOT 5
- Support Chinese Search HOT 1
- Code example for signing content.json HOT 1
- Namecoin example should be updated HOT 1
- Documentation of Multiuser plugin
- Document the different types of ZeroFrame responses (in WebSocket)
- Make JavaScript the default for examples HOT 1
- Document feeds section of content.json
- How does Zeronet work with Tor? HOT 2
- Namecoin buy tip not work anymore
- Broken link in FAQ HOT 1
- Instructions to use with Tor Browser in the FAQ are out of date HOT 1
- [INF] Working on Italian version HOT 3
- Update the faq ZH version
- MORE SCREENSHOTS on Intro Page Leads to 404 HOT 1
- tor section is outdated HOT 2
- Zeronet with Tor on Linux - more universal and work instructions
- build documentation fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from documentation.