Git Product home page Git Product logo

Comments (7)

mrniko avatar mrniko commented on May 21, 2024

Have you seen at demo project code examples? What kind of description is needed?

from netty-socketio.

masterDen avatar masterDen commented on May 21, 2024

Yes, I see the demo project. What is purpose of AckRequest and AckCallback? What its lifecycle?

from netty-socketio.

mrniko avatar mrniko commented on May 21, 2024

I put some comments right in sources of those classes. Does it help?

from netty-socketio.

niffrig avatar niffrig commented on May 21, 2024

Additionally interface documentation for things like JsonSupport. The expectations for namespaces and arrays are unclear. What are the expectations of lifecycle and how are they expected to scale? It appears that a JsonSupport instance is effectively meant to be request scoped but that happens as a detail of implementation in the default JacksonJsonSupport.

from netty-socketio.

AlexCzar avatar AlexCzar commented on May 21, 2024

Also I couldn't find any info on how to make SpringAnnotationScanner work. Declaring it like this, does nothing:

@Bean(destroyMethod = "stop")
def socketServer() {
    new SocketIOServer(new com.corundumstudio.socketio.Configuration())
}

@Bean
def socketIoConfigurer() {
    new SpringAnnotationScanner(socketServer())
}

from netty-socketio.

mrniko avatar mrniko commented on May 21, 2024

@AlexCzar i have almost the same config as you wrote and it works. Is socketServer available as bean?

from netty-socketio.

AlexCzar avatar AlexCzar commented on May 21, 2024

Yes it is. For now I add all the handler in the static void main() like this:

def app = SpringApplication.run(Bootstrap, args)
def ioServer = app.getBean(SocketIOServer)
ioServer.addListeners(MyHandler)
ioServer.start()

This works, but having to remember to edit main every time I add a new handler class is kinda lame.

By the way, I tried defining handler as a @Service, a @Component and as a @Bean. The problem is the same for all three.

from netty-socketio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.