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)
- 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
- 链接断开后内存不释放 HOT 5
- socketio配置跨域请求可能多种选择,可以选择不配置? HOT 2
- 2.0.2版本在centos7服务器上部署就出现这个问题,看不懂
- Client Usge. HOT 1
- Memory growth issue 2.0.9
- Connecting React Client to Net SocketIO Backend results in 404 error HOT 2
- Jackson Cannot Deserialize Object HOT 1
- How do we know it's a failed authorization from client?
- Ingress unable to connect to pod
- When I sent a byte [], the client failed to receive it.
- disconnect event, Socket closed.
- GraalVM Native-Image deployment
- Max Connections cannot exceed 64 HOT 3
- Use cases for Store interface
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.