Ajax y WebSockets | Websockets

Sebastián Lastre Mosquera@sebastianlastre

1<!DOCTYPE html> 2<html lang="en"> 3<head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 <title>WebSocket</title> 7</head> 8<body> 9 <button id="btnConnect">Conectar</button> 10 <button id="btnDisconnect">Desconetar</button> 11 12 <label for="txtMsg">Mensaje</label> 13 <input type="text" id="textMsg"> 14 <button id="btnSend">Enviar</button> 15 16 <label for="chat"></label> 17 <div id="chat"></div> 18 <script src="js/websocket.js"></script> 19 20</body> 21</html>

Escribe una respuesta