lua-lluv-websocket icon indicating copy to clipboard operation
lua-lluv-websocket copied to clipboard

wss support does not work

Open LaySoft opened this issue 2 years ago • 2 comments

I tried wss support with the provided example wss_echo.lua, but the following errors occured:

lua: /usr/local/share/lua/5.1/lluv/websocket.lua:248: Unsupport WSS protocol
stack traceback:
        [C]: in function 'error'
        /usr/local/share/lua/5.1/lluv/websocket.lua:248: in function </usr/local/share/lua/5.1/lluv/websocket.lua:200>
        (tail call): ?
        /usr/local/share/lua/5.1/websocket/client_lluv.lua:63: in function 'connect'
        wss_test.lua:36: in main chunk
        [C]: ?

What's the problem?

LaySoft avatar Sep 25 '23 22:09 LaySoft

You have to install lluv-ssl library.

moteus avatar Sep 27 '23 07:09 moteus

After I installed the lluv-ssl library, and try the same example, another error occured:

lua: /usr/local/share/lua/5.2/lluv/websocket.lua:249: no cipher match
stack traceback:
        [C]: in function 'assert'
        /usr/local/share/lua/5.2/lluv/websocket.lua:249: in function </usr/local/share/lua/5.2/lluv/websocket.lua:200>
        (...tail calls...)
        /usr/local/share/lua/5.2/websocket/client_lluv.lua:63: in function 'connect'
        wss_test.lua:30: in main chunk
        [C]: in ?

LaySoft avatar Sep 27 '23 07:09 LaySoft