mrniko / netty-socketio

Socket.IO server implemented on Java. Realtime java framework
Apache License 2.0
6.84k stars 1.66k forks source link

version 1.7.20 ,SpringAnnotationScanner is invalid #860

Open kid-ai opened 2 years ago

kid-ai commented 2 years ago

https://github.com/hiwepy/socketio-spring-boot-starter [2.0.0.RELEASE] springboot 2.6.10

the class code rollback to version 1.7.19 , is ok.

AscTh commented 8 months ago

Furthermore, SpringAnnotationScanner does not work in version 2.0.9

mrniko commented 8 months ago

Can you suggest a fix?

AscTh commented 8 months ago

First, I want to find out if I'm doing everything right. Is it enough to add a listener just to put an OnConnect annotation? Because the following code does not work

@OnConnect
public void onConnect(SocketIOClient client) {
    log.info("Socket ID[{}] - Connected to socket", client.getSessionId().toString());
}