There is a node sever and I want to perform a socket connection with my client. I can connect with node but python version doesn't connect.
what is wrong with python version?
const io = require('socket.io-client');
const socket = io("wss://winseller.turkmenexpress.ir", {
auth: {
token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwSWQiOiIyNyIsIm1vYmlsZSI6IjA5MTI3Mzk2Nzk0In0.moQMWb_I1CyhCJ9Gh4TLH8LiVwtE7h2wH4DPY-KEeT0"
}
});
socket.on('disconnect', function(data){
console.log('server is down');
})
socket.on('connect', function(data){
console.log('socket is connected');
})
import socketio
sio = socketio.Client()
sio.connect('wss://winseller.turkmenexpress.ir',auth={
'token': "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwSWQiOiIyNyIsIm1vYmlsZSI6IjA5MTI3Mzk2Nzk0In0.moQMWb_I1CyhCJ9Gh4TLH8LiVwtE7h2wH4DPY-KEeT0"
},wait=True, wait_timeout= 10
)
@sio.on('connect')
def connect():
print('socket is connected')
@sio.on('disconnect')
def disconnect():
print('server is down')
ws://winseller.turkmenexpress.irws://using forhttpanswss://using fortlsorhttps://.