javascript – Mqtt Sending and Reciving Image

I am currently working on a project in which I want to send an image from raspberry pi to a broker then i want to diplay it to a web app (nodeJs backend and angular front).

This image would be sent from the back to the front and be displayed in real time using Socket.io.

I managed to create the sending part from the raspberry but I am having difficulties with the receiving part (I am new to this)

Can anybody point me in the right direction? I’m a bit lost in the matter.

Postgresql database stops reciving data when django runserver is activate

I have a postgres database that recives data each 10 mins, and its been working fine for a while, and now I´m working on a Django proyect that needs to be connected to that database, and I thing the conection its ok since I can query the data, but there is a problem with the data base, at the moment I run python manage.py runserver 0.0.0.0:8100 (it needs to be in that port), the database stops reciving the data and when I stop the server the db can recive the data again, but the data that was supposed to be in while the server was running was lost. Any ideas on how can I solve this? My Django version is 3.1.1

This is how I make the connection to the database in Django:

DATABASES = {
    'default': {
        'ENGINE': 'django.contrib.gis.db.backends.postgis',
        'NAME': 'Ray',
        'USER': 'postgres',
        'PASSWORD': 'mypassword',
        'HOST': 'the_ip_adress',
    }
}

and the script that puts the data in the database makes the connection like this:

engine = create_engine('postgresql://postgres:mypassword@the_ip_adress/Ray',poolclass=NullPool)
conn = engine.connect()
insert_df(df)
conn.close()