You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change GosSocket to WS and it will work. Using WS is deprecated but it still functions, the documentation must be out of date with the most recent commit.
<script> var websocket = WS.connect('ws://127.0.0.1:8080'); </script>
Following javascript client instructions here:
https://github.com/GeniusesOfSymfony/WebSocketBundle/blob/3.x/docs/javascript-client.md
I got this error on my firefox
Uncaught ReferenceError: GosSocket is not defined
This the final html I have (simplified at maximum) is this:
<title>Welcome!</title> <script src="/bundles/goswebsocket/js/vendor/autobahn.min.js"></script> <script src="/bundles/goswebsocket/js/websocket.min.js"></script> <script> var websocket = GosSocket.connect('ws://127.0.0.1:8080'); </script>The text was updated successfully, but these errors were encountered: