Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSocket support, live data subscriptions #151

Closed
j-forster opened this issue May 15, 2017 · 8 comments
Closed

WebSocket support, live data subscriptions #151

j-forster opened this issue May 15, 2017 · 8 comments
Labels

Comments

@j-forster
Copy link
Member

j-forster commented May 15, 2017

For now, subscriptions to the fiware-orion broker will trigger an http request to a given endpoint.
This method is not usable for wep app clients, that can not function as an http server.

See telefonicaid/fiware-orion#1181
It seems like WebSocket has not been implemented yet.
As a solution to this, a WebSocket gateway can functions as a bridge between the clients and the broker.

WebSocket gateway

The gateway should connect

  • the broker, that can handle subscriptions with http requests only
  • the web client

In order to listen for data changes, the client can open a websocket connection to the ws-gateway.
The gateway makes a subscription to the broker, and will pass any data-changes to the client via ws.
Closing the websocket connection will make the broker unsubscribe the previously create subscriptions.
Web Client <===WebSocket===> WS-Gateway <---HTTP---> Broker

What is your opinion?
I think, a Waziup WS-Gateway can boost the WebApps enormously.

@cdupont
Copy link
Contributor

cdupont commented May 16, 2017

Actually it seems that the bulk of the work is done in Orion: telefonicaid/fiware-orion#1669
Only documentation, tests, style and some configuration aspects are pending.
Probably we can get the feature in HEAD, perhaps compiling with some flags.
Tell me what you think.

@j-forster
Copy link
Member Author

Your right @cdupont, I didn't see the progress that they made.
I would really appreciate this feature, because it will be really useful and it's the only way to monitor live data within WebApps.

Is there any chance of enabling this feature with the Waziup broker?

@cdupont
Copy link
Contributor

cdupont commented May 16, 2017

There is already the HEAD of Orion in Waziup... Maybe the feature is already present? Could you check?

@j-forster
Copy link
Member Author

j-forster commented May 16, 2017

It is in a different branch: https://github.com/telefonicaid/fiware-orion/tree/feature/1181_websockets
But this branch is far behind master..
However, I tested ws://broker.waziup.io and ws://broker.waziup.io:9010 - both don't connect.

@j-forster
Copy link
Member Author

So we're back where the question began: Interested in a WebSocket gateway?

@ARBISWAS
Copy link
Contributor

It is a good idea to integrate the WebScoket in WAZIUP platform

@cdupont
Copy link
Contributor

cdupont commented May 18, 2017

Orion dev replied: telefonicaid/fiware-orion#1181 (comment)
They will not integrate websockets in the foreseeable future.
So let's go with a web socket gateway!

@cdupont
Copy link
Contributor

cdupont commented Mar 2, 2018

closing as too old. Let's reopen another issue if still needed.

@cdupont cdupont closed this as completed Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants