something something webshlockets
This commit is contained in:
parent
f2e995dcc0
commit
36dd4a0176
|
@ -1 +0,0 @@
|
||||||
../../lib
|
|
|
@ -1 +0,0 @@
|
||||||
../../lib
|
|
|
@ -1 +0,0 @@
|
||||||
../../lib
|
|
|
@ -1 +0,0 @@
|
||||||
../../lib
|
|
|
@ -1 +0,0 @@
|
||||||
../../lib
|
|
|
@ -1 +0,0 @@
|
||||||
../lib
|
|
|
@ -1 +0,0 @@
|
||||||
../../lib
|
|
|
@ -1 +0,0 @@
|
||||||
../../lib
|
|
|
@ -1 +0,0 @@
|
||||||
../../lib
|
|
|
@ -1 +0,0 @@
|
||||||
../../../lib
|
|
|
@ -1 +0,0 @@
|
||||||
../../lib
|
|
|
@ -1 +0,0 @@
|
||||||
../../lib
|
|
|
@ -16,7 +16,7 @@ app = Landline::Server.new do
|
||||||
files[file.filename] = "<a href=\"files/#{filename}\">#{filename}</a>"
|
files[file.filename] = "<a href=\"files/#{filename}\">#{filename}</a>"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
erubi(file("index.rhtml"), { formdata: files }).run
|
erb(file("index.rhtml"), { formdata: files }).run
|
||||||
end
|
end
|
||||||
serve "/files/*"
|
serve "/files/*"
|
||||||
get "/" do
|
get "/" do
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
../../examples
|
|
|
@ -188,6 +188,8 @@ module Landline
|
||||||
def _process_events(next_frame)
|
def _process_events(next_frame)
|
||||||
loop do
|
loop do
|
||||||
frame = next_frame.call
|
frame = next_frame.call
|
||||||
|
return nil unless frame
|
||||||
|
|
||||||
case frame.type
|
case frame.type
|
||||||
when :binary, :text, :pong then return frame
|
when :binary, :text, :pong then return frame
|
||||||
when :ping
|
when :ping
|
||||||
|
|
Loading…
Reference in New Issue