Constructor
new Actions(id)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
id |
string | Unique identifier shared by a |
Members
(readonly) Types :Object
- Source:
Properties:
Name | Type | Description |
---|---|---|
Close |
string | |
Open |
string | |
Reject |
string | |
ResumeBegin |
string | |
ResumeEnd |
string |
Types
returns the action.type
strings that this instance dispatches to the Redux store.
Type:
- Object
Methods
Close() → {Object}
- Source:
Creates the Close reducer action.
This action sets the reducer to guest.
Returns:
- Type
- Object
matches(action) → {boolean}
- Source:
matches
accepts an action
object and returns true
if it matches the action generators from this
instance.
Note action.type
is not checked as it is assumed the reducer will be checking that property.
Parameters:
Name | Type | Description |
---|---|---|
action |
Object | The Redux action. |
Returns:
- Type
- boolean
Open(session, user, username) → {Object}
- Source:
Creates the Open reducer action.
This action sets the reducer to authenticated; all SocketPlugin
instances will attempt to connect()
to the server.
Parameters:
Name | Type | Description |
---|---|---|
session |
string | The |
user |
Object | The opaque |
username |
string | The |
Returns:
- Type
- Object
Reject() → {Object}
- Source:
Creates the Reject
reducer action.
This action indicates a SocketPlugin
attempted to verify itself with the server and was rejected. Sets
the reducer to guest.
Returns:
- Type
- Object
ResumeBegin() → {Object}
- Source:
Creates the ResumeBegin
reducer action.
This action is dispatched prior to an HTTP-POST session resume attempt.
Returns:
- Type
- Object
ResumeEnd() → {Object}
- Source:
Creates the ResumeEnd
reducer action.
This action is dispatched after an HTTP-POST session resume attempt has completed.
Returns:
- Type
- Object