Questions tagged as 'socket.io'

2
answers

How to pass the reference of a variable (io - Socket.io) to a class in JS [Node.js]?

I would like to know what is the correct way to pass the reference of the variable io to a class in Node.js I currently have the variable initialized in a file index.js : const io = require('socket.io').listen(9000) Reading some bl...
asked by 12.05.2017 / 05:30
1
answer

Error socketio in google computer engine

Anyone who managed to integrate socket.io in a google compute engine? what happens is that I'm trying to integrate but the client does not connect main.blade.php window.socket = io("{{env('SOCKET_URL')}}:{{env('SOCKET_PORT')}}"); window.cha...
asked by 12.04.2017 / 18:55