Websocket connection not established
I tried to set up the environment in multiple ways.

1. installed XAMPP Version 7.2.2, cloned the project folder into `D:\xampp\htdocs`, started Apache and MySQL service from XAMPP control panel, created a db called dvws_db, configured the `connect-db.php `file in `D:\xampp\htdocs\DVWS\includes` 
2. opened the project in IntelliJ IDEA 2017.3.5 (Ultimate edition), configured the built-in PHP web server, started MySQL service using XAMPP
3. used docker image following this guide (https://hub.docker.com/r/tssoffsec/dvws/)

In all situations, I was able to access the application using a browser and db connection was successful 
![db-setup-success](https://user-images.githubusercontent.com/17596394/37503959-7ea837b0-2901-11e8-89f5-e48029dc9702.PNG)

However, whenever I click a submit button(in any page) I get an error. For example after clicking login button in brute-force page in chrome
![error-when-clicking-login](https://user-images.githubusercontent.com/17596394/37503999-b5fdfe5c-2901-11e8-8486-9a9768e3109c.PNG)

after clicking login button in brute-force page in firefox
![error-when-clicking-login-firefox](https://user-images.githubusercontent.com/17596394/37504035-f24ceb52-2901-11e8-86bc-a96f2298872d.PNG)

I found a similar problem is addressed in https://github.com/ratchetphp/Ratchet/issues/481
I am not familiar with javascript development, to check I tried to change the relevant code into this
![change-to-onopen](https://user-images.githubusercontent.com/17596394/37504161-9fb4215c-2902-11e8-8066-0b27a027564b.PNG)

I got the following error after changing
![error-onopen](https://user-images.githubusercontent.com/17596394/37504178-b7a1e678-2902-11e8-9f91-dced58d48b3e.PNG)

Please look into this.




