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

support websockets for real time events #24

Open
mblackstock opened this issue Mar 26, 2013 · 1 comment
Open

support websockets for real time events #24

mblackstock opened this issue Mar 26, 2013 · 1 comment

Comments

@mblackstock
Copy link
Member

We may want to consider using atmosphere (https://github.com/Atmosphere) - it seems to play well with the spring framework and runs on Tomcat 7+

@mblackstock
Copy link
Member Author

Extending #21, Application resources could be extended to own a web sockets stream as follows.

Add a thing subscription to an application stream

POST /applications/{appId}/sub
{
"thingId": thingId,
"filter": filter - "all", "thing-only", "following-only"
"query":query - query on the events that should be received
}

Get list of thing subscriptions

GET /applications/{appId}/sub
returns list of subscriptions
[ ... list of subscriptions ...]

Get real time web sockets stream

GET /applications/{appId}/stream
retrieves events in real time on all subscribed things on a web socket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant