Comments (7)
I would like to work on this if you mind
from netty-socketio.
Ok, it would be nice!
from netty-socketio.
Netty-socketio Configuration details
Netty-socketio can be configured by means of a Configuration object provided during server creation. Such configuration is cloned, so further changes to the Configuration object will not affect server.
Details
- setHostname If not set then bind address will be 0.0.0.0 or ::0
- setPort The port the socket.io server will listen to
- setJsonTypeFieldName defaults to "@Class"
- setJsonSupport Allows to setup custom implementation of JSON serialization/deserialization. See JsonSupport
- setBossExecutor Sets the BossExecutor of underlying NioServer, defaults to Executors.newCachedThreadPool()
- setWorkerExecutor Sets the WorkerExecutor of underlying NioServer, defaults to Executors.newCachedThreadPool()
- setHeartbeatInterval Heartbeat interval (in seconds), defaults to 25
- setHeartbeatTimeout Heartbeat timeout (in seconds), defaults to 60. Use 0 to disable it
- setHeartbeatThreadPoolSize Heartbeat thread pool size, defaults to 2 times the "available processors" at runtime
- setCloseTimeout Channel close timeout (in seconds) due to inactivity, defaults to 60
- setContext Namespace, defaults to "/socket.io"
- setAllowCustomRequests Allow to service custom requests that differ from socket.io protocol, defaults to false.
- If true, add own handler which handle custom requests in order to avoid hang connections.
- setPollingDuration Polling interval for XHR transport (in seconds), defaults to 20
- setKeyStorePassword SSL key store password (for secure connections)
- setKeyStore SSL key store stream, maybe appointed to any source
- setMaxHttpContentLength Set maximum HTTP content length limit, defaults to 64KB.
- If the length of the aggregated content exceeds this value, a TooLongFrameException will be raised.
- setTransports Transports supported by server, defaults to [Transport.WEBSOCKET, Transport.FLASHSOCKET, Transport.XHRPOLLING]. Cannot be empty list
Usage example
Configuration config = new Configuration();
config.setHostname("localhost");
config.setPort(1337);
config.setCloseTimeout(30);
SocketIOServer server = new SocketIOServer(config);
...
from netty-socketio.
Not sure if this was what you expected? Or do you mean documenting the class by javadoc? Please let me know
from netty-socketio.
Thanks a lot, for description! I created wiki page for it.
from netty-socketio.
Will you call this item closed now?
from netty-socketio.
In the latest 1.7.9, I cannot find a method to set the XHR polling interval as mentioned in this configuration wiki.
I would like to control the XHR polling interval in cases, where the websocket upgrade fails. How can this be configured?
from netty-socketio.
Related Issues (20)
- I have to wait 20 seconds before restarting my java spring boot app because of SocketIO HOT 7
- Documentation is missing?
- Learn document need
- The negotiation timeout period is missing
- Memory Leak while WebSocketServerHandshakeException or Channel failed HOT 1
- Load Test - Netty writeAndFlush HOT 1
- This error IndexOutOfBoundsException is reported when receiving binary files HOT 3
- Hi, when the next release is planned?) HOT 1
- Hope to have an socket.io-client-java demo HOT 1
- netty-socketio 2.0.3 是不是不支持socket.io-client 3.0+ HOT 7
- Socketio established connection domain name path exception
- 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
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.