-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtestClienteHTTP_Receptor.html
More file actions
46 lines (39 loc) · 1.7 KB
/
Copy pathtestClienteHTTP_Receptor.html
File metadata and controls
46 lines (39 loc) · 1.7 KB
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
<!doctype html>
<html>
<head>
<title>title</title>
</head>
<body>
<div>
Mensajes Recibidos:
</div>
<div id="contador_de_mensajes">
</div>
</body>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="underscore-min.js"></script>
<script type="text/javascript" src="socket.io.js"></script>
<script type="text/javascript" src="Filtros.js"></script>
<script type="text/javascript" src="NodoRouter.js"></script>
<script type="text/javascript" src="NodoClienteHTTP.js"></script>
<script type="text/javascript" src="NodoConectorSocket.js"></script>
<script type="text/javascript" src="NodoNulo.js"></script>
<script type="text/javascript" src="Vortex.js"></script>
<!-- <script type="text/javascript" src="vortex.min.js"></script>-->
<script>
$(document).ready(function () {
var div_contador = $('#contador_de_mensajes');
var mensajes_recibidos = 0;
div_contador.text(mensajes_recibidos.toString());
//Vx.conectarCon(new NodoClienteHTTP('http://server-vortex.herokuapp.com', 10, true, 1000));
//Vx.conectarCon(new NodoClienteHTTP('http://router-vortex.herokuapp.com', 10, true, 1000));
vx.conectarCon(new NodoConectorSocket('https://server-vortex.herokuapp.com'));
//Vx.conectarCon(new NodoConectorSocket('http://localhost:3000'));
Vx.when({contenido:'prueba'}, function (mensaje, response) {
mensajes_recibidos += 1;
div_contador.text(mensajes_recibidos.toString());
response.send({bla:"bla"});
});
});
</script>
</html>