1 Star 1 Fork 0

networknt/light-example-4j

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

There are two examples to show how to use websocket with light-4j framework.

client-to-server

This example to show you how to communicate between client and server. To start the server.

cd ~/networknt
git clone git@github.com:networknt/light-example-4j.git
cd light-example-4j/websocket/client-to-server
mvn clean install exec:exec

Go to your browser and input the url

http://localhost:8080

peer-to-peer

This is a chat server that shows how to use websocket to communicate between two or more browsers.

cd ~/networknt
git clone git@github.com:networknt/light-example-4j.git
cd light-example-4j/websocket/peer-to-peer
mvn clean install exec:exec

Open two browsers on the same computer or two different computers with the url

http://localhost:8080
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/networknt/light-example-4j.git
git@gitee.com:networknt/light-example-4j.git
networknt
light-example-4j
light-example-4j
master

搜索帮助