The problem: Firing up the Visual Studio 2015 debugger ('Attach to Unity and Play'). The websocket is closed and becomes unrecheable by the client and the game is not playable.
Replaying the error:
Open Unity project with the AirConsole plugin installed
Execute the basic project from the examples folder (AirConsole/examples/basic/basic.unity).
Then open Microsoft Visual Studio and Attach to Unity (Or attach to unity and play)
In the virtual controller console you will see the following error WebSocket connection to 'ws://127.0.0.1:7843/api' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
How to fix it: This bug is a known bug from the library "Websocket-sharp" that AirConsole uses for handle websockets and is reported in this link
In that same issue, the user Tazpa wrote a fix for this problem linked here
Pull request:
I made a pull request with a fixed version of the websocket-sharp.dll with the changes that the user Tazpa commented in the issue from the plugin
Note: This is my first issue and pull request in github. Im not sure if everything i did its correct about how to make an issue and a pull request to fix it. Please forgive me if something its not done right.
The problem: Firing up the Visual Studio 2015 debugger ('Attach to Unity and Play'). The websocket is closed and becomes unrecheable by the client and the game is not playable.
Replaying the error:
WebSocket connection to 'ws://127.0.0.1:7843/api' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
How to fix it: This bug is a known bug from the library "Websocket-sharp" that AirConsole uses for handle websockets and is reported in this link
In that same issue, the user Tazpa wrote a fix for this problem linked here
Pull request:
I made a pull request with a fixed version of the websocket-sharp.dll with the changes that the user Tazpa commented in the issue from the plugin
Pull request with the fix
Note: This is my first issue and pull request in github. Im not sure if everything i did its correct about how to make an issue and a pull request to fix it. Please forgive me if something its not done right.