Constructor
new Gob(id)
Creates a new Gob
.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The id common to the elements in the |
Members
(readonly) Actions :Actions
Actions
are the Redux actions dispatched by this Gob
.
Type:
dispatcher :func
dispatcher
is the dispatch
function tied to the Redux store and must be set for SocketPlugin
instances
to communicate with the Redux store.
Mounting Gob.React.Guest
or Gob.React.Authenticated
in the application will set this property automatically. If not
mounting either of those components then you will need to set this property explicitly after creating your Redux
store.
Type:
- func
(readonly) id :string
id
is the id
value the Gob
was created with.
Type:
- string
(readonly) React :Components
React
returns React components for this Gob
.
Type:
(readonly) Reducer :Reducer
Reducer
is the Redux reducer tied to this Gob
.
Type:
storage :LocalStorage
storage
is the LocalStorage
instance attached to this Gob
.
Type:
- LocalStorage
Methods
SocketPlugin()
SocketPlugin
is a constructor to create instances of SocketPlugin
tied to this Gob
.
When using this constructor you do not need to pass the gob
, session
, or dispatch
members of
the SocketPlugin
options.
storeToProps(state)
storeToProps
is the function used as the first argument to connect()
when binding a React component
to Redux.
Parameters:
Name | Type | Description |
---|---|---|
state |
Object | The Redux store state. |