sides / war3observer

A Warcraft III observer API reader/renderer for streaming overlays
MIT License
51 stars 20 forks source link

Invalid Connection header: ['keep-alive'] With custome port and ip #7

Closed grossmaul2130 closed 4 years ago

grossmaul2130 commented 4 years ago

war3observer.exe started with --port and --host when trying to connect to the set ip and port Invalid Connection header: ['keep-alive'] is returned. Handshake fails after first request to the socket. Attached the headers from firefox. As you can see websocket is instantly closing the connection. handshake

sides commented 4 years ago

Hi, are you making a http request to the server? That will not give you any results. Have you tried making a websocket connection to it?

grossmaul2130 commented 4 years ago

Case can be closed i needed to changene the ip and port in the .js file to my custom choosen websocket as well and host my 1v1-overview.html on a small webserver. Your hint with the websocket was very helpfull. Thank you a lot

sides commented 4 years ago

@grossmaul2130 Glad you figured it out. For the record you shouldn't have to edit js files in the client. This may be relevant to you: https://github.com/warlockbrawl/war3observer/issues/4#issuecomment-522701958