Comments (3)
I changed my mind. I think its fine if you just add a warning.
from node-wot.
By default, http-binding assumes any "event-like" affordance to be implemented with a long polling protocol. I bet that's the reason why you were seeing such weird behavior with multiple subscriptions ( the client continuously creates a GET request against the endpoint). To be honest I'm not sure how to properly solve this behaviour. What about adding a warning message? Something like: No subprotocol found defaulting to longpoll
.
from node-wot.
Yes sure.
Personally I would say that if there is more than one form of subprotocol possible with the same http method and URL, then subprotocol field can be made mandatory.
But of course, the warning would solve the issue of "unexpectedness"/unknown behaviour which makes the user dig deep into docs.
from node-wot.
Related Issues (20)
- Async actions should not try to validate the value according DataSchema
- action and event affordance do not raise error when data schema does not match HOT 3
- Export WoT implementation type
- Modbus Test issue with modv:function HOT 1
- Issue with void-obj of Test Thing HOT 1
- Follow-up on validating output for (async) actions
- Re-creating package-lock.json fails HOT 7
- observe property deserialized value (may) not (be) completely consistent HOT 5
- Deprecating tm-helpers from node-wot HOT 3
- [test] Convert unhandledRejection to uncaughtException
- TODOs after major release
- Re-activate mbus tests on Windows
- two netconf-codec.ts files
- Replacing Protocol and Port Detection HOT 2
- PR to tackle the refactoring of duplicating thing-description.ts to core
- Upgrading to Typescript 5.x HOT 2
- CoAP: Support falling back to polling observable properties and events
- core package is missing dependencies in v0.8.15 HOT 5
- Detect issue with dependencies in monorepo 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 node-wot.