vacom
03/27/2017, 9:09 PMnilan
03/27/2017, 9:10 PMvacom
03/27/2017, 9:11 PMnilan
03/27/2017, 9:12 PMvacom
03/27/2017, 9:13 PMnilan
03/27/2017, 9:14 PMthis.createMessageSubscription = this.props.channelQuery.subscribeToMore({
to this.createMessageSubscription = this.props.data.subscribeToMore({
or supply the name
option to the graphql
to set the name of the query to channelQuery
🙂nilan
03/27/2017, 9:14 PMname
option: https://github.com/graphcool-examples/worldchat-subscriptions-example/blob/master/src/Chat.js#L119vacom
03/27/2017, 9:20 PMnilan
03/27/2017, 9:21 PMconnectionParams
like that will only set the auth token the first time, when it's still null
nilan
03/27/2017, 9:22 PMonSubscribe
, as described here: https://github.com/apollographql/subscriptions-transport-ws#constructoroptions-socketoptionsnilan
03/27/2017, 9:25 PMvacom
03/27/2017, 9:28 PMvacom
03/27/2017, 9:28 PMvacom
03/27/2017, 9:39 PMnilan
03/27/2017, 9:40 PMnilan
03/27/2017, 9:41 PMvacom
03/27/2017, 9:56 PMvacom
03/27/2017, 9:58 PMnilan
03/27/2017, 10:01 PMnilan
03/27/2017, 10:01 PMvacom
03/27/2017, 10:03 PMvacom
03/27/2017, 10:04 PMvacom
03/27/2017, 10:05 PMnilan
03/27/2017, 10:12 PMvacom
03/27/2017, 10:12 PMnilan
03/27/2017, 10:12 PMnilan
03/27/2017, 10:12 PMvacom
03/27/2017, 10:14 PMBearer ${localStorage.getItem('graphcoolToken')}
,
},
now is getting the datavacom
03/27/2017, 10:15 PMnilan
03/27/2017, 10:22 PMvacom
03/27/2017, 10:42 PM