Open mrstegeman opened 6 years ago
A cancelAction
message type perhaps?
We need a way to specify which action to cancel, which I'd suggest should be done using the action request URL, but I'm not sure of the exact syntax. Maybe something like...
{
"messageType": "cancelAction",
"data": {
"grab": {
"href": "/actions/grab/123e4567-e89b-12d3-a456-426655"
}
}
}
An href
attribute should be sufficient. Do you like cancelAction
better than removeAction
? It's actually doing both on the server, so I could go either way.
In the gateway, we're now using
removeAction
in add-ons when DELETE is called, so maybe we should create a similar websocket request.