server for the game unforgettable7 http + WebSocket on the same port
repo; version: 2021.113.1118 date: 2021-01-13 authors: bestia.dev
Html and WebSocket server for the unforgettable7 game
Primarily made for learning to code Rust for a http + WebSocket server on the same port.
Using Warp for a simple memory game for kids - unforgettable7.
On the IP address on port 8086 listens to http and WebSocket.
Route for http /
serves static files from folder /unforgettable7/
.
Route /unforgettable7ws/
broadcast all WebSocket msg to all connected clients except sender.
One working server is installed on my google vm.
There is a nginx server reverse proxy that accepts https http2 on 443 and relay to internal 8086.
Nginx also redirects all http 80 to https 443.
You can play the game here (hosted on google cloud platform):
https://bestia.dev/unforgettable7
The new version looks nice, but I had the problem when a user disconnects the websocket without handshake. It happens only on Android Chrome.
My open-source projects are free as a beer (MIT license).
I just love programming.
But I need also to drink. If you find my projects and tutorials helpful, please buy me a beer by donating to my PayPal.
You know the price of a beer in your local bar ;-)
So I can drink a free beer for your health :-)
Na zdravje! Alla salute! Prost! Nazdravlje! 🍻
//bestia.dev
//github.com/bestia-dev
//bestiadev.substack.com
//youtube.com/@bestia-dev-tutorials