Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

signaling reconnection works only when sdk.type is 'JavaScript' #1334

Open
vipcxj opened this issue Jul 14, 2023 · 1 comment
Open

signaling reconnection works only when sdk.type is 'JavaScript' #1334

vipcxj opened this issue Jul 14, 2023 · 1 comment

Comments

@vipcxj
Copy link
Contributor

vipcxj commented Jul 14, 2023

I am writing a python client.
When sending login message, I found I must set sdk type as 'JavaScript', even it not.
Or no reconnectionTicket is returned.
Even I specific reconnection property.

For example:

login_request = {
    'token': XXXXX,
    'userAgent': {
        'sdk': {
            'version': '5.0',
            'type': 'JavaScript',
        }
    },
    'protocol': '1.2'
}

it works

login_request = {
    'token': XXXXX,
    'userAgent': {
        'sdk': {
            'version': '0.1',
            'type': 'python',
        }
    },
    'reconnection': { 'keepTime': 300 }
    'protocol': '1.2'
}

it not works.

@starwarfan
Copy link
Collaborator

The 'type' is hard coded in source/portal/socketIOServer.js. Python has not been implemented before.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants