[Plugin] Socket.io Client

Hello,

I’m trying to implement this plugin with a python server also using socketio. I’m able to connect to the server and emit a message but when a try to receive from the server, UE keep crashing.

I haven’t been able to find a solution to my problem.

console_result.JPG

**Error in UE editor **: Error_socketio_project.JPG

Log file

As I understand it, I couldn’t bind an event. I couldn’t find why…

Here is my server code (python 3.7)


from aiohttp import web
import socketio
from colorama import init, Fore
init(autoreset=True)

sio = socketio.AsyncServer()
app = web.Application()
sio.attach(app)
#sio.manager.set_server


async def index(request):
   with open('index.html') as f:
     return web.Response(text=f.read(), content_type='text/html')

@sio.on('connect', namespace="/")
def connect(sid, env):
    print(Fore.RED + "connect ", sid)

@sio.on('test', namespace="/")
async def message(sid, data):
    print(Fore.GREEN + "message << ", data)
    await sio.emit('reply', "Hi i'm the server", sid)

@sio.on('disconnect', namespace="/")
def disconnect(sid):
    print(Fore.RED + 'disconnect', sid)

#app.router.add_static('/static', 'static')
app.router.add_get('/', index)


if __name__ == '__main__':
    web.run_app(app)


**Blueprints

**

Does anyone have an idea on how to solve this?

Thank you,