Pusher part one

This commit is contained in:
James Barnsley
2016-10-27 16:58:11 +13:00
parent c4fcf43b3c
commit 6de44cda53
10 changed files with 192 additions and 10 deletions

View File

@ -0,0 +1,31 @@
/**
* Actions and Action Creators
**/
export function setConfig( config ){
return {
type: 'PUSHER_SET_CONFIG',
config: config
}
}
export function connect(){
return {
type: 'PUSHER_CONNECT'
}
}
export function disconnect(){
return {
type: 'PUSHER_DISCONNECT'
}
}
export function instruct( call, value ){
return {
type: 'PUSHER_INSTRUCT',
call: call,
value: value
}
}