<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 2/28/2012 6:49 PM, Andrew Sillers wrote:
<blockquote
cite="mid:CAAHY0jTDqVhbXwj9fd4DBj97ax5g66B1jRH_HCCGc_sEH-KVyQ@mail.gmail.com"
type="cite">
<div>Hello Netrek devs,</div>
<div><br>
</div>
<span>I've been playing around with some JavaScript libraries for
HTML5 canvas drawing, and I feel fairly confident that it would
be possible to make browser-based a Netrek client. The browser
could use WebSockets to communicate with an intermediary
WebSocket-based Netrek server.</span>
<div>
<br>
</div>
<div>[[Browser client]] <---WebSocket connection--->
[[WebSocket server]] <----real TCP connection---->
[[Regular Netrek server]]</div>
<div><br>
</div>
<div>The intermediate WebSocket server would be quite thin; it
just needs to catch WebSocket messages from the client and
forward them to the actual Netrek server. (I believe this
roughly is the model that <a moz-do-not-send="true"
href="http://freeciv.net/" target="_blank"
style="color:rgb(17,85,204)">freeciv.net</a> uses for their
browser-based Freeciv client.) The WebSocket server and the
actual server could be run on the same host or different hosts,
which means anyone who can set up a WebSocket server could
connect their browser client to a real Netrek server.</div>
</blockquote>
The instant the WebSocket server dies, every person playing from the
browser platform is disconnected.<br>
</body>
</html>