yii-node-socket
yii-node-socket copied to clipboard
Missing js class YiiNodeSocket
Hello,
Where do you define the YiiNodeSocket javascript class?
I cannot find it anywhere on the files. I get ReferenceError: YiiNodeSocket is not defined when I try var socket = new YiiNodeSocket();
I have called Yii::app()->nodeSocket->registerClientScripts(); but it does not find client.js and I had to manually install socket.io (it wasn't in your instructions).
Do you know where it could come from or do you need any additional info?
Thanks
Hello, client.js will be crreated when you star nodejs server with console command from https://github.com/oncesk/yii-node-socket/blob/master/lib/js/client/client.template.js