lua-lluv-websocket
lua-lluv-websocket copied to clipboard
wss support does not work
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?
You have to install lluv-ssl library.
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 ?