Files
Iris/src/js/services/pusher/actions.js

52 lines
759 B
JavaScript
Raw Normal View History

2016-10-27 16:58:11 +13:00
/**
* Actions and Action Creators
**/
2016-10-31 09:25:15 +13:00
export function setPort( port ){
2016-10-27 16:58:11 +13:00
return {
2016-10-31 09:25:15 +13:00
type: 'PUSHER_SET_PORT',
port: port
2016-10-27 16:58:11 +13:00
}
}
export function connect(){
return {
type: 'PUSHER_CONNECT'
}
}
export function disconnect(){
return {
type: 'PUSHER_DISCONNECT'
}
}
export function performUpgrade(){
return {
type: 'PUSHER_UPGRADING'
}
}
export function getConnectionList(){
return {
type: 'PUSHER_INSTRUCT',
action: 'get_connections'
}
}
export function instruct( message_type, data = null ){
2016-10-27 16:58:11 +13:00
return {
type: 'PUSHER_INSTRUCT',
message_type: message_type,
data: data
2016-10-27 16:58:11 +13:00
}
}
export function debug( call, data = null ){
return {
type: 'PUSHER_DEBUG',
call: call,
data: data
}
2016-10-27 16:58:11 +13:00
}