Comments (9)
Yeah it's not super urgent but should not how we teach node-wot for sure
from website.
Issue can be closed after the merge of the PR linked above
from website.
3.Also, there is no name displayed on the page/tab. Similarly, the hands-on page displays
thingweb-thingweb
. Could you take a look at it @danielpeintner ?
33eb9f2 fixes the issue
from website.
@egekorkan Thank you very much for your feedback!
-
I couldn't really understand this point. If there is an event you usually also want to subscribe to that particular event, don't you? Otherwise, nothing will happen when the event is emitted, which seems quite silly for me. So, the code shows how to do it. I know that I could simply invoke the
notify
function when there are no sufficient resources, but the idea was to show how events can be used in that case. Additionally, instead of just notifying, the event handler (or listener, whatever you call it) can be much more sophisticated and it's just simplified for the sake of the example. -
I am aware of the
readallproperties
method but this was done intentionally. The idea was to show the usage ofuriVariables
with Property Affordances, and, as we have discussed in Telegram, this usually involves having another property for the same data since you cannot read/write to the same property within your own read/write handler.
from website.
About the second point, all good!
About the first one:
You subscribe to an event as the Consumer and not really as the Exposed Thing itself. Once you call the emit function, the event is sent to its subscribers on all protocols. What is very important to show is that there is no Event Handler in the Exposed Thing, you do not handle events, you emit them.
from website.
I have handlers in both client and server Thing.
So, you suggest removing the server part and leaving it only inside the client?
from website.
That is what I would suggest to not give the wrong impression. You can however say that such a behavior is possible.
from website.
I will resolve this as soon as the PRs for the coffee machine + oAuth will be merged in order to avoid merge conflicts. I hope it is not asap, @egekorkan?
from website.
@egekorkan
Please find out these two PRs closing this issue:
eclipse-thingweb/node-wot#248
#20
from website.
Related Issues (20)
- Add .gitignore HOT 6
- [Coffee Machine] Wrong use of resolve in uriVariables HOT 3
- [Enhancement] Make Website more developer-friendly
- [Enhancement] Make Website more search engine optimized
- Eclipse progress review - footer HOT 1
- Templates need to be updated for v.0.8.0 HOT 1
- Thingweb vserver moved HOT 2
- Use https for thingweb.io HOT 3
- Make GitHub Link more prominent HOT 2
- Build fails with new Hugo version
- Layout between header and footer not nicely aligned
- Rethinking news section HOT 2
- Examples Web Page HOT 3
- GitHub buttons integration
- 404 page misses to load CSS properly HOT 4
- Favor favor WoT.requestThingDescription() instead of general fetch
- Make external links accessible HOT 1
- Rework the "News" page HOT 1
- Implementation of a cookie/consent button for consent management
- Improve the get involved page 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 website.