0

I am planning to use a SocketIO - Netty framework in my already existing java project. Right now I am implementing this project on a Tomcat 6 server.

So to make the above mentioned changes do I need a change of server ? I am little confused here. Can we implement SocketIO-Netty framework on Tomcat6 or is it only possible with Netty server?

If so I have read somewhere that we can use another framework called Atmosphere with Netty(NettoSphere) so that we can implement it on Tomcat. But again I have read articles saying that WebSockets can be implemented on Tomcat 7.0.27 or above. But I am not sure on whether SocketIO can be implemented on Tomcat 6. Some clarification on this is very much appreciated.

1 Answer 1

2

It's as easy as pie, just create com.corundumstudio.socketio.SocketIOServer. Example:

In your tomcat Servlet.init method type follow:

Configuration config = new Configuration();
config.setHostname("localhost");
config.setPort(81);

SocketIOServer server = new SocketIOServer(config);
server.start();
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.