Noeda / dfterm3

Remote Dwarf Fortress playing
ISC License
45 stars 2 forks source link

Web interface doesn't check for websocket port #8

Closed lethosor closed 10 years ago

lethosor commented 10 years ago

If the websocket port is changed (with --websocket), the JS in playing.html still assumes the port is 8000. A possible solution could be to generate a JavaScript/JSON file with Haskell containing the websocket port, e.g.:

dfterm3_ports = {
  'websocket': 8000
}

which could be included in playing.html before connecting to the websocket server.

Noeda commented 10 years ago

Fixed in 25f31a305ba46fd1301c5255d9ea077dc6cc6933.

If more than one WebSocket port is specified, the client side code shall select a port at random.