Clients to have access to broadcast and send_message as it now uses data as dict, not python params
This commit is contained in:
@ -44,21 +44,21 @@ export function getConnections(){
|
||||
export function connectionAdded(connection){
|
||||
return {
|
||||
type: 'PUSHER_CONNECTION_ADDED',
|
||||
connection: connection
|
||||
connection: connection.connection
|
||||
}
|
||||
}
|
||||
|
||||
export function connectionChanged(connection){
|
||||
return {
|
||||
type: 'PUSHER_CONNECTION_CHANGED',
|
||||
connection: connection
|
||||
connection: connection.connection
|
||||
}
|
||||
}
|
||||
|
||||
export function connectionRemoved(connection){
|
||||
return {
|
||||
type: 'PUSHER_CONNECTION_REMOVED',
|
||||
connection: connection
|
||||
connection: connection.connection
|
||||
}
|
||||
}
|
||||
|
||||
@ -91,16 +91,13 @@ export function deliverBroadcast(method, params){
|
||||
}
|
||||
}
|
||||
|
||||
export function sendAuthorization(recipient_connectionid, authorization, me){
|
||||
export function deliverMessage(recipient, method, params){
|
||||
return {
|
||||
type: 'PUSHER_DELIVER_MESSAGE',
|
||||
data: {
|
||||
connection_id: recipient_connectionid,
|
||||
message: {
|
||||
type: 'spotify_authorization',
|
||||
authorization: authorization,
|
||||
me: me
|
||||
}
|
||||
recipient: recipient,
|
||||
method: method,
|
||||
params: params
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -144,6 +141,13 @@ export function getQueueMetadata(){
|
||||
}
|
||||
}
|
||||
|
||||
export function queueMetadataChanged(queue_metadata){
|
||||
return {
|
||||
type: 'PUSHER_QUEUE_METADATA_CHANGED',
|
||||
queue_metadata: queue_metadata.queue_metadata
|
||||
}
|
||||
}
|
||||
|
||||
export function addQueueMetadata(tlids = [], from_uri = null){
|
||||
return {
|
||||
type: 'PUSHER_ADD_QUEUE_METADATA',
|
||||
|
||||
Reference in New Issue
Block a user