how update socket.io in node_modules
Hi How i can update socket.io in node_modules ?
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 .
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?
please help me
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 .