yii-node-socket icon indicating copy to clipboard operation
yii-node-socket copied to clipboard

Missing js class YiiNodeSocket

Open Seb- opened this issue 10 years ago • 1 comments

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

Seb- avatar Apr 05 '14 01:04 Seb-

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

oncesk avatar Apr 05 '14 04:04 oncesk