Closed agoenks29D closed 3 years ago
i have run npm install socket.io-emitter --save
npm install socket.io-emitter --save
and try connect to server :
var io = require('socket.io-emitter')({ host: '127.0.0.1', port: 8081}); setInterval(function(){ io.emit('time', new Date); }, 5000);
and showing this error :
when i try to install any package,i got problem :
this library for client side or server side?
This library is for server side
This library is indeed intended for server side usage. I've updated the README to make it clearer.
i have run
npm install socket.io-emitter --save
and try connect to server :
and showing this error :
when i try to install any package,i got problem :
this library for client side or server side?