Skip to content

Commit f4642a7

Browse files
author
Eduardo García Sanz
committed
forceNew is needed in order to get a new socket instance...
1 parent 6b63245 commit f4642a7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"homepage" : "https://github.com/coma/react-socket",
55
"repository" : "https://github.com/coma/react-socket",
66
"main" : "./src/index.js",
7-
"version" : "0.1.2",
7+
"version" : "0.1.3",
88
"license" : "MIT",
99
"private" : false,
1010
"authors" : [

src/socket.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ module.exports = React.createClass({
2121

2222
return {
2323
name : 'default',
24-
options: {}
24+
options: {
25+
forceNew: true
26+
}
2527
};
2628
},
2729
statics : {

0 commit comments

Comments
 (0)