tasker-server
tasker-server is Web API for passing requests to clients.
It will pass request in realtime and will not store it anywhere.
Clients
API
Sending events
Request example:
POST /
"action":"nextSong" //action you want to do (can not begin with _) "key":"home|laptop" //client selectors (each client has to advertise with list of selectors)
Response example:
"status": "ok" //event sent "sentTo": 5 //sent to 5 clients
Getting events
To get events inside of client, you need to connect to websocket, at /gate and advertise your keys... (home, laptop, etc)
So, communication would look something like this:
client:
"message": "subscribe" "keys": "home|laptop"
And, when server recieve event, it will send it as is...
Tasker example task
1476936446375 1476949681640 6 Next Song 100 547 %Server localhost:3000 116 %Server {"action":"nextSong","key":"home"} application/json