Coder Social home page Coder Social logo

Comments (7)

pablojr avatar pablojr commented on May 17, 2024

I would like to work on this if you mind

from netty-socketio.

mrniko avatar mrniko commented on May 17, 2024

Ok, it would be nice!

from netty-socketio.

pablojr avatar pablojr commented on May 17, 2024

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.

pablojr avatar pablojr commented on May 17, 2024

Not sure if this was what you expected? Or do you mean documenting the class by javadoc? Please let me know

from netty-socketio.

mrniko avatar mrniko commented on May 17, 2024

Thanks a lot, for description! I created wiki page for it.

from netty-socketio.

pablojr avatar pablojr commented on May 17, 2024

Will you call this item closed now?

from netty-socketio.

pramodbms avatar pramodbms commented on May 17, 2024

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)

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.