Tasker server is server for receiving commands from Tasker and forwarding them to my PC.
npm install tasker-servertasker-server is Web API for passing requests to clients.
It will pass request in realtime and will not store it anywhere.

Request example:
POST /
``javascript`
{
"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:
`javascript`
{
"status": "ok", //event sent
"sentTo": 5 //sent to 5 clients
}
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:
`javascript`
{
"message": "subscribe",
"keys": "home|laptop"
}
And, when server recieve event, it will send it as is...
`xml``
547
116