-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plz,I want to use both socket.io and http.what can I do? #133
Comments
What? |
I would like to have both socket.io and http service,what should we do? |
And which problems you have encountered? |
@mrniko I am doing the flash game in client using Flash Player(version 11.1), and the flash communication mostly with Netty-SocketIO at port 8800. Thanks. |
Which version of Netty-SocketIO do you use? |
newest |
which socketio client do you use? |
socketio 1.0 is not available for flash as i know |
Netty-SocketIO I use 1.6. |
in case of flashsocket usage, netty-socketio replays by crossdomain.xml first time |
But , I visit the crossdomain.xml in the same port , the http state is 400.I can't visit the crossdomain.xml |
@cavacn, since netty-socketio library obviously uses Netty as underlying library, you can take advantage of Netty and create an HTTP server in the same Java application you're creating your netty-socketio server, see for example http://netty.io/4.0/xref/io/netty/example/http/file/HttpStaticFileServer.html And regarding having several services listening to the same port you may want to take a look at http://netty.io/4.0/xref/io/netty/example/portunification/PortUnificationServer.html |
@pablojr thank you very much, I try it!!o(∩_∩)o |
With new |
configure nginx as proxy (one port for http and ws) and add required headers (crossdomain policy and other)... |
I would like to have both socket.io and http service
The text was updated successfully, but these errors were encountered: