Comments (7)
Have you seen at demo project code examples? What kind of description is needed?
from netty-socketio.
Yes, I see the demo project. What is purpose of AckRequest and AckCallback? What its lifecycle?
from netty-socketio.
I put some comments right in sources of those classes. Does it help?
from netty-socketio.
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.
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.
@AlexCzar i have almost the same config as you wrote and it works. Is socketServer available as bean?
from netty-socketio.
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)
- Jackson Unknown enum deserialising HOT 1
- 如何在服务端知道前后端是什么原因断开的?How does the server know the cause of the disconnection? HOT 4
- socket.io v4.6.0 js library cannot decode binary message from netty-socketio 2.0.6 HOT 7
- Context seems like an innapropriate label
- Android and Documentation
- Is it normal for 10,000 connections to occupy 1G of memory?
- A OOM problem was found in netty-socketio HOT 1
- Not support handle websocket ping frame HOT 3
- NPE when the ack response timeout HOT 5
- Is the auth parameter of socket.io currently supported? Because I added a parameter auth, which caused the Disconnection event to return "parse error" HOT 2
- how to add a costom decoder in netty-socketio ? HOT 1
- Java 8 date/time type `java.time.LocalDateTime` not supported by default HOT 1
- io.netty.util.IllegalReferenceCountException: refCnt: 0 HOT 1
- Boss, could you please write some comments
- redis中看不到保存的会话的key HOT 1
- receiving via polling seems to be broken with 2.0.4 clients
- 2.0.8版本出现这个问题,如何解决呢 HOT 1
- Ignore request for AuthorizationListener
- exception:io.netty.util.IllegalReferenceCountException: refCnt: 0 version:2.0.8 HOT 1
- if ack returns after the timeout trigger ,a IllegalStateException will be thrown HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netty-socketio.