Sign in
apache
/
httpd-tests
/
441f704568bd4ed97adbfd882627a5076d4d5268
/
.
/
t
/
htdocs
/
modules
/
lua
/
websockets.lua
blob: 1acd91ba09dd3d1d07a6fe6b01e482f1614f9f0d [
file
] [
log
] [
blame
]
function
handle
(
r
)
if
r
:
wsupgrade
()
then
-- if we can upgrade:
while
true
do
local
line
,
isFinal
=
r
:
wsread
()
r
:
wswrite
(
line
)
if
line
==
"quit"
then
r
:
wsclose
()
-- goodbye!
break
end
end
end
end