cocos2d-js icon indicating copy to clipboard operation
cocos2d-js copied to clipboard

Update libwebsockets

Open 486 opened this issue 11 years ago • 8 comments
trafficstars

The currently used version of libwebsockets (v 1.23) is 8 months old and contains some huge bugs. I.e. headers are parsed with incorrect case sensitivity which breaks compatibility with various web servers.

It would be great if it could be updated to latest version (master branch of https://github.com/warmcat/libwebsockets).

Are there any instructions on how to update the source and compile it for cocos2d-x?

486 avatar Jul 05 '14 16:07 486

Thanks, a task have been created: http://www.cocos2d-x.org/issues/5667

pandamicro avatar Jul 07 '14 01:07 pandamicro

Thank you very much! I am looking forward to it.

Is there any chance it could be compiled with OpenSSL or alternatively CyaSSL (see https://github.com/warmcat/libwebsockets/blob/master/README.build) ? It would be great to have secure WebSockets because they work in many networks where normal WebSockets are blocked.

486 avatar Jul 07 '14 16:07 486

Hello, I would love to have a go at compiling the latest version of libwebsockets with OpenSSL support and contributing back to the repo. Are there instructions anywhere on how to do this? Did you ever manage to get it working 486?

alex-mcleod avatar Sep 15 '14 02:09 alex-mcleod

Unfortunately, no, I hoped that the experts would do it :) I think this is the repo from where the current, old version 1.23 has been built for cocos: https://github.com/dumganhar/libwebsockets/tree/v1.23 Perhaps this can help you. Good luck!

486 avatar Sep 15 '14 08:09 486

That's a shame. I'll have a go at it and report back here if I'm successful.

alex-mcleod avatar Sep 16 '14 15:09 alex-mcleod

Has anyone managed to compile libwebsockets with OpenSSL?

pankaj-pp avatar Mar 17 '16 05:03 pankaj-pp

Still waiting... it is really a shame, Cocos2dx is fantastic, but without a Secure WebSocket it is really hard to make real-time multiplayer games. And you really need it secure, not only for privacy, but also because mobile networks often block plain WebSocket.

486 avatar Mar 30 '16 08:03 486

Any Update?

pankaj-pp avatar Jun 28 '16 11:06 pankaj-pp