Standardized status value on all pusher responses; deliver_message

This commit is contained in:
James Barnsley
2017-02-21 08:58:49 +13:00
parent ba5ef316f4
commit 148fe39cd4
4 changed files with 76 additions and 31 deletions

View File

@ -50,10 +50,13 @@ export function instruct( data = null ){
export function sendAuthorization( recipient_connectionid, authorization, me ){
return {
type: 'PUSHER_SEND_AUTHORIZATION',
recipient_connectionid: recipient_connectionid,
authorization: authorization,
me: me
type: 'PUSHER_DELIVER_MESSAGE',
to: recipient_connectionid,
message: {
type: 'spotify_authorization',
authorization: authorization,
me: me
}
}
}