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

how update socket.io in node_modules

Open asadkhalili opened this issue 8 years ago • 4 comments

Hi How i can update socket.io in node_modules ?

asadkhalili avatar Nov 07 '17 21:11 asadkhalili

Hey hey, you just need to change version in package.json and run npm update

But i am not sure if lib will works as expected

When it was writen socket.io had just 0.9 version

8 нояб. 2017 г. 12:09 AM пользователь "asadkhalili" < [email protected]> написал:

Hi How i can update socket.io in node_modules ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/oncesk/yii-node-socket/issues/91, or mute the thread https://github.com/notifications/unsubscribe-auth/AB84jM5jpc-TnTvE1mRGmiz3dlWA8YH3ks5s0McSgaJpZM4QVc2h .

oncesk avatar Nov 08 '17 05:11 oncesk

after update has this error:

io.of('/client').authorization(function (handshakeData, accept) { TypeError: io.of(...).authorization is not a function

In this article read about migration from 0.9 :use i.use() instead authorization. https://socket.io/docs/migrating-from-0-9/

how i can this?

asadkhalili avatar Nov 11 '17 15:11 asadkhalili

please help me

asadkhalili avatar Nov 17 '17 17:11 asadkhalili

Hi, you should rrad socket.io documentation and change some code, like in authorization function, also you should a look to the components and replaco some code with a new socket.io api

17 нояб. 2017 г. 6:40 PM пользователь "asadkhalili" < [email protected]> написал:

please help me

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/oncesk/yii-node-socket/issues/91#issuecomment-345312432, or mute the thread https://github.com/notifications/unsubscribe-auth/AB84jNWuOycwT2t17gcSrRDqDi58mQVEks5s3cURgaJpZM4QVc2h .

oncesk avatar Nov 17 '17 20:11 oncesk