~qeef/wschat

4441c862bf3627c94431828641990c85b64f283f — Jiri Vlasak 4 years ago 06dc358
Set listening port to 80
3 files changed, 7 insertions(+), 2 deletions(-)

M CHANGELOG.md
M src/main.rs
M static/c.js
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)