const html =
\\<script>
- \\let s = new WebSocket("ws://localhost:8080/");
+ \\let s = new WebSocket("wss://" + window.location.hostname + ":8443");
\\s.addEventListener("open", (event) => {
\\ console.log("connected");
\\ s.send("Hello Server!");
};
pub fn main() !void {
- const address = try std.net.Address.parseIp("127.0.0.1", 8080);
+ const address = try std.net.Address.parseIp("127.0.0.1", 8000);
const tpe: u32 = posix.SOCK.STREAM | posix.SOCK.NONBLOCK;
const protocol = posix.IPPROTO.TCP;