moteus / lua-lluv-websocket

Websocket for lluv library
MIT License
19 stars 1 forks source link

wss support does not work #4

Open LaySoft opened 1 year ago

LaySoft commented 1 year ago

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?

moteus commented 1 year ago

You have to install lluv-ssl library.

LaySoft commented 1 year ago

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 ?