Browse Source

Add message to SEND_MESSAGE action for debugging.

pull/1/head
Titouan Rigoudy 9 years ago
parent
commit
885f50a52c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/actions/socketActionsFactory.js

+ 1
- 0
src/actions/socketActionsFactory.js View File

@ -30,6 +30,7 @@ export default (socketClient) => ({
const action = { type: SOCKET_SEND_MESSAGE }; const action = { type: SOCKET_SEND_MESSAGE };
try { try {
socketClient.send(JSON.stringify(message)); socketClient.send(JSON.stringify(message));
action.payload = message;
} catch (err) { } catch (err) {
action.error = true; action.error = true;
action.payload = err; action.payload = err;


Loading…
Cancel
Save