Suman Deb
Suman Deb
Sorry, i will try to give as much info as possible yes when am trying to use with threading pool ( native python) its not working.. The same code works...
This test code works smoothly.. ``` from flask import Flask, render_template, request, flash from flask_socketio import SocketIO, emit, disconnect import time import multiprocessing from multiprocessing import Lock import threading #...
I guess i have reproduced the problem with the working test module.. if replace either socket.emit with only emit, remove socket.run with app.run , it's giving me context error. So...
AM getting application context error. RuntimeError: Working outside of application context. Can you provide me a link or doc for install a app context ?
Now i can see it's working.. I can't thank you enough, you helped me like anything.. Thank you for your patience..
I tried to import the socketio instance in my blueprint file, but still the event handler is not working.. cat init.py app = Flask(__name__) app.secret_key = """xxxxxxx""" socketio = SocketIO(app,...
Never Mind..I was able to fix the issue, Looks like i had to import things properly. I initiated the event handler in the init.py itself. and also had to import...
I am not using flask authentication. It's a in-House authentication thing. When i close and reopen the page, it's showing the refreshed page, not the one status since that got...
Am trying to achieve something exactly like any cloud based solutions For example if i create an Ec2 instance from console and close it. Upon reopening it will still show...