1 Star 0 Fork 0

dmrs / netty-socketio-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

#Netty-socketio Demo

Demo for Netty-socketio project.

#Usage example

  1. Build or install Netty-socketio lib to your maven repository. mvn clean install

  2. Switch to /server folder and build server by maven.

  3. Run server by command mvn exec:java

  4. Run client in browser, by opening* file /client/index.html

Note about Chrome and IE browsers

If you want to open index.html in Chrome or IE browser you need to host it somewhere (nginx or apache, for example), or page will not work due to absence of correct "origin" http header.

#Demo scenarios

By default you will run a chat which communcate with server via json objects. There are several demo scenarios available:

Class - Web client page

com.corundumstudio.socketio.demo.ChatLauncher - /client/index.html

com.corundumstudio.socketio.demo.EventChatLauncher - /client/event-index.html

com.corundumstudio.socketio.demo.SslChatLauncher - /client/ssl-event-index.html

com.corundumstudio.socketio.demo.NamespaceChatLauncher - /client/namespace-index.html

com.corundumstudio.socketio.demo.AckChatLauncher - /client/ack-index.html

com.corundumstudio.socketio.demo.BinaryEventLauncher - /client/binary-event-index.html

You can select appropriate server launcher by command with main.class parameter:

mvn exec:java -Dmain.class=com.corundumstudio.socketio.demo.SslChatLauncher

空文件

简介

netty-socketio demo 展开 收起
HTML
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
HTML
1
https://gitee.com/dmrs/netty-socketio-demo.git
git@gitee.com:dmrs/netty-socketio-demo.git
dmrs
netty-socketio-demo
netty-socketio-demo
master

搜索帮助