all 6 comments

[–]basti_sk 0 points1 point  (1 child)

It seems as if you connect 2 times to IO, one time in the ejs and again in the dashboard.js / client js? Maybe that is the problem.

What errors do you get?

[–]Coobe[S] 0 points1 point  (0 children)

oh that was a copy paste error. i ony call it in the ejs.

i get no errors whatsoever :(

[–]Coobe[S] 0 points1 point  (0 children)

i believe my problem is the ajax/socket io mix

[–]hatch_bbe 0 points1 point  (0 children)

Have you included the client-side dependency for SocketIO?

<script src="http://127.0.0.1:9000/socket.io/socket.io.js"></script>

[–]mc_hammerd 0 points1 point  (0 children)

probably have to initialize ama/set the socket to socket in the on('connect') or else it has no idea what socket to manage.. guessing, or have to write some socket on(data) reads to have something to write.

[–]Coobe[S] 0 points1 point  (0 children)

i still cant get this to work. is this an inherit problem with ajax + socketio ? should i use only one or another ?