Hi, I developed simple project with flask soket io and try to get real time voice in backend. in localhost it works and receive data but when i run it in remote server it doesn`t work.
@socketio.on('write-audio')
def write_audio(data):
"""Write a chunk of audio from the client."""
print(type(data))
@socketio.on('connect')
def on_connect():
print('on_connect')
socketio.start_background_task(target=target_class.background_thread_from_stream, app=current_app._get_current_object())
socket.on('connect', function() {
console.log('CONNECTION ESTABLISHED !!')
});
soket.emit('write-audio', buffer)
Hi, I developed simple project with flask soket io and try to get real time voice in backend. in localhost it works and receive data but when i run it in remote server it doesn`t work.