Skip to content

Clifnich/Learn-WebSocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learn-WebSocket

This repository contains a simple WebSocket server written in Java. We use Maven as the dependency manager. It also contains a web page together with JavaScript code to interact with the WebSocket server.

中文版 readme 请看这里.

Run the Server

Use the following command to run the WebSocket server.

$ mvn tomcat7:run

Verification

Once the server is running, open your browser and visit http://localhost:8080. You should see the following text in the web page.

## WebSocket Test

CONNECTED

SENT: WebSocket rocks

RESPONSE: {"from":"a-curious-websocket-learner","content":"Connected!"}

DISCONNECTED

About

Simple WebSocket Server in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published