Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props) {
super(props);
this.state = {highest: 0, people: 0};
//this.last_message = 0;
this.pubnub = new PubNubReact({
publishKey: 'pub-c-172db584-ca6b-4e9c-80a7-4e4d982bcf65',
subscribeKey: 'sub-c-07e8b65a-78c9-11e8-bf64-d6949d01620d'
});
this.pubnub.init(this);
// this.state = { highest : 0 };
console.log({ pubnub: this.pubnub });
}
constructor(props) {
super(props);
this.state = {value: ''};
this.pubnub = new PubNubReact({
publishKey: 'ENTER_YOUR_PUBLISH_KEY',
subscribeKey: 'ENTER_YOUR_SUBSCRIBE_KEY'
});
this.pubnub.init(this);
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
}
constructor(props) {
super(props)
const {publishKey, subscribeKey} = this.props
/**
* Pubnub instance
* @private
*/
this.pubnub = new PubNubReact({publishKey, subscribeKey})
this.pubnub.init(this)
}
constructor(props) {
super(props)
this.state = {
direction: 0
}
if (typeof props.pubnub === 'object' && (LIVE || PRESENT)) {
this.pubnub = new PubNubReact({
publishKey: props.pubnub.publishKey,
subscribeKey: props.pubnub.subscribeKey
})
this.pubnub.init(this)
}
}