Hi,
since I already learned some basic skills to create a game with Construct 2 I wanted to create a simple turn-based multiplayer game.
The GameLogic will be running on a server, and since I'm interested in learning about JEE too, I developed the server in Java using the javax.websocket.* stuff.
The problem is: if I use some JavaScript for testing purposes everything works fine. If I test the same things in Construct 2 (connecting and sending text / receiving text) the connection gets established (at least the server tells me that the client had successfully connected and did not yet disconnect/close) but inside Chrome in the Network Tab of the Developer Tools in the Frames section there is an error saying "Invalid UTF-8 sequence in header value".
In addition, I get the following errors inside the Developer Tools:
WebSocket connection to 'ws://localhost:8080/game/gameendpoint' failed: Invalid UTF-8 sequence in header value C2WebSocket_plugin.js:142
[Construct 2] Suspending common_prelude.js:33
[Construct 2] Resuming common_prelude.js:33
[Construct 2] Suspending common_prelude.js:33
Since it works if I open a static HTMl/JS it must be a mistake in Construct I think.
The server runs (as one can see) on my local machine.
Hopefully someone can help me get this working.
Thank you for reading!