M CHANGELOG.md => CHANGELOG.md +5 -0
@@ 12,6 12,11 @@ The format is based on [Keep a Changelog][] and this project adheres to
Unreleased
==========
+Changed
+-------
+
+- Set listening port to 80.
+
0.1.1 -- 2020-08-13
===================
M src/main.rs => src/main.rs +1 -1
@@ 31,7 31,7 @@ async fn main() {
.map(|socket: Ws, clients| {
socket.on_upgrade(move |ws| new_client(ws, clients))
});
- warp::serve(route).run(([0, 0, 0, 0], 8080)).await;
+ warp::serve(route).run(([0, 0, 0, 0], 80)).await;
}
async fn new_client(ws: WebSocket, clients: Clients) {
M static/c.js => static/c.js +1 -1
@@ 1,6 1,6 @@
const messages = document.getElementById("messages");
const msg = document.getElementById("msg");
-const uri = "ws://localhost:8080";
+const uri = "ws://localhost:80";
const ws = new WebSocket(uri);
function add_msg(t)