-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
60 lines (46 loc) · 1.88 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link type="text/css" href="css/default.css?123" rel="stylesheet" />
<link type="text/css" href="css/smoothness/jquery-ui-1.8.22.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.22.custom.min.js"></script>
<script type="text/javascript" src="js/stomp.js"></script>
<script type="text/javascript" src="js/activeMQClient.js?2032"></script>
<title>Autentia - Chat con Websockets y ActiveMQ</title>
<script type="text/javascript">
$(function(){
$('#conversations').tabs();
});
</script>
</head>
<body>
<a href="http://www.autentia.com" target="_blank"><img src="img/autentia.png" alt="Autentia"/></a>
<h1>EJEMPLO DE WEBSOCKETS STOMP Y ACTIVEMQ</h1>
<p class="info">
Recuerda que debes tener ActiveMQ levantado con el soporte de WebSockets configurado (transportConnector). La URL y el puerto se configuran en el fichero activeMQClient.js (por defecto ws://localhost:61614)
</p>
<div id="container">
<div class="leftPanel">
<div class="userInfo">
<span class="disconnected" id="status">Desconectado</span>
Nombre: <input type="text" id="userName"/><span class="onLineUserName"></span>
</div>
<div>
<button id="connect" onclick="ActiveMQClient.connect($('#userName').val());">Conectar</button>
<button id="disconnect" disabled="disabled" onclick="ActiveMQClient.disconnect()">Desconexión</button>
</div>
<div id="onLineUsersPanel">
<h3>Usuarios conectados:</h3>
<ul id="onlineUsers">
</ul>
</div>
</div>
<div id="conversations">
<ul>
</ul>
</div>
</div>
</body>
</html>