File tree 4 files changed +12
-6
lines changed
examples/ReactDomExample/App/Config 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change
1
+ ### Aug 9, 2016 - 0.9.0
2
+
3
+ * ` NEW ` supports secure option for using wss - [ @ridersx ] ( https://github.com/ridersx ) [ (#66 )] ( https://github.com/skellock/reactotron/pull/98 )
4
+
1
5
### July 29, 2016 - 0.8.0
2
6
3
7
* ` NEW ` support Symbol as Redux action types - [ @fantasywind ] ( https://github.com/fantasywind ) [ (#66 )] ( https://github.com/skellock/reactotron/pull/66 )
4
8
* ` FIX ` prevents sending empty subscription messages - [ @skellock ] ( https://github.com/skellock ) [ (#67 )] ( https://github.com/skellock/reactotron/pull/67 )
5
9
6
-
7
10
### July 15, 2016 - 0.7.0
8
11
9
12
* ` NEW ` android ip auto-detection support! - [ @jhen0409 ] ( https://github.com/jhen0409 )
Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ const options = {
77
77
name: ' React Web' , // Display name of the client
78
78
server: ' localhost' , // IP of the server to connect to
79
79
port: 3334 , // Port of the server to connect to (default: 3334)
80
- enabled: true // Whether or not Reactotron should be enabled.
80
+ enabled: true , // Whether or not Reactotron should be enabled.
81
+ secure: false , // Are you piggybacking on HTTP or HTTPS (default: false)
81
82
}
82
83
83
84
Reactotron .connect (options)
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
6
6
7
7
// --- Begin Awkward Hackzorz ---
8
8
9
- var REACTOTRON_VERSION = '0.8 .0' ;
9
+ var REACTOTRON_VERSION = '0.9 .0' ;
10
10
var R = require ( 'ramda' ) ;
11
11
12
12
// client enabled flag
@@ -87,7 +87,8 @@ client.connect = function () {
87
87
version : REACTOTRON_VERSION ,
88
88
server : 'localhost' ,
89
89
port : 3334 ,
90
- enabled : true
90
+ enabled : true ,
91
+ secure : false
91
92
} ;
92
93
93
94
// merge user input with defaults
@@ -99,7 +100,7 @@ client.connect = function () {
99
100
reactotronEnabled = config . enabled ;
100
101
101
102
if ( config . enabled ) {
102
- socket = io ( 'ws ://' + config . server + ':' + config . port , {
103
+ socket = io ( ( config . secure ? 'wss' : 'ws' ) + ' ://' + config . server + ':' + config . port , {
103
104
jsonp : false ,
104
105
transports : [ 'websocket' ]
105
106
} ) ;
Original file line number Diff line number Diff line change 1
1
import Reactotron from '../../client' // in a real app, you would use 'reactotron'
2
2
3
3
Reactotron . connect ( {
4
- name : 'ReactDomExample'
4
+ name : 'ReactDomExample' ,
5
+ secure : false
5
6
} )
6
7
7
8
// a little easier (albiet ghetto) way to make Reactotron available in other
You can’t perform that action at this time.
0 commit comments