Skip to content

Instantly share code, notes, and snippets.

@Oifan
Oifan / WsChat.html
Last active September 16, 2016 15:18 — forked from chitan/WsChat.html
How to use WebSocket of Tomcat-7.0.52 --> Deploy and visit URL http://localhost:8080/WsChat/WsChat.html?who=Tester123
<!DOCTYPE html>
<!-- move this file to: src/main/webapp/WsChat.html -->
<html>
<head>
<meta charset="utf-8">
<title>Tomcat WebSocket Chat</title>
<script type="text/javascript">
function params2Form(){
var hashParams = window.location.search.substr(1).split('&');