This website works better with JavaScript.
Home
Explore
Help
Sign In
titouan
/
solstice-web
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Add message to SEND_MESSAGE action for debugging.
pull/1/head
Titouan Rigoudy
9 years ago
parent
1cf89b8ecb
commit
885f50a52c
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
}
;
try
{
socketClient
.
send
(
JSON
.
stringify
(
message
)
)
;
action
.
payload
=
message
;
}
catch
(
err
)
{
action
.
error
=
true
;
action
.
payload
=
err
;
Write
Preview
Loading…
Cancel
Save