How to use the pubnub.generateUUID function in pubnub

To help you get started, we’ve selected a few pubnub examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MetaMask / metamask-mobile / app / util / syncWithExtension.js View on Github external
generateCipherKeyAndChannelName(selectedAddress) {
		const cipherKey = `${selectedAddress.substr(-4)}-${PubNub.generateUUID()}`;
		const channelName = `mmm-${PubNub.generateUUID()}`;
		return { cipherKey, channelName };
	}
github brave / ethereum-remote-client / ui / app / pages / mobile-sync / mobile-sync.component.js View on Github external
generateCipherKeyAndChannelName () {
    this.cipherKey = `${this.props.selectedAddress.substr(-4)}-${PubNub.generateUUID()}`
    this.channelName = `mm-${PubNub.generateUUID()}`
    this.setState({cipherKey: this.cipherKey, channelName: this.channelName})
  }
github brave / ethereum-remote-client / ui / app / pages / mobile-sync / mobile-sync.component.js View on Github external
generateCipherKeyAndChannelName () {
    this.cipherKey = `${this.props.selectedAddress.substr(-4)}-${PubNub.generateUUID()}`
    this.channelName = `mm-${PubNub.generateUUID()}`
    this.setState({cipherKey: this.cipherKey, channelName: this.channelName})
  }

pubnub

Publish & Subscribe Real-time Messaging with PubNub

SEE LICENSE IN LICENSE
Latest version published 4 days ago

Package Health Score

86 / 100
Full package analysis