oncesk / yii-node-socket

66 stars 46 forks source link

restart the server.js file Automaticlly #70

Open taha-deris opened 8 years ago

taha-deris commented 8 years ago

hi. i now use this plugin and don't have any problem, thank you.

just i have question about when the socket is off and disconnected. many of my site events, chat , and another things is affiliate to socket. so when

  1. restart apache server 2.server.js got error socket is disconnected. and i should be run command
$> ./yii node-socket/start # start server

(However i start the socket server manually by go to widget path in yii vendor and use this command 'node server.js')

now how can restart the server.js file Automaticlly when they disconnected through the above reasons

oncesk commented 8 years ago

hi, which error you got?

oncesk commented 8 years ago

and what are you mean

restart the server.js file Automaticlly when they disconnected through the above reasons

?