Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

The component called visitorSDK.on('protocol_upgraded'... and then cleared users, cause a crash. #93

Description

@summerlove57

Only initialize LiveChat and pass the license.

<LiveChat license="1XXXXX" group={...}/>

componentDidMount() {
		const visitorSDK = init({
			license: this.props.license,
			group: this.props.group,
			appName: 'ReactNative',
		})

		this.initVisitorSdk(visitorSDK)

		visitorSDK.on('protocol_upgraded', () => {
			this.setState({
				protocol: 'lc3',
				users: {},
				messages: [],
			})

I looked through the documentation https://developers.livechat.com/docs/extending-chat-widget/visitor-sdk#is-it-for-me but couldn't find'protocol_upgraded'. Is my parameter passed incorrectly? Could anyone help solve this problem? It would be better if there are related documents explaining'protocol_upgraded'.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions