abstract class LiveView
- LiveView
- Reference
- Object
Defined in:
live_view.crConstant Summary
-
CHANNELS =
Hash(String, Channel).new
-
GC_INTERVAL =
30.seconds
-
VERSION =
"0.1.0"
Constructors
Class Method Summary
Instance Method Summary
- #__mount__(socket)
- #__unmount__(socket)
- #every(duration : Time::Span, &block)
- #handle_event(event_name : String, data : String, socket : HTTP::WebSocket)
- #live_view(io, id : Nil | String = UUID.random.to_s)
- #live_view_id
-
#mount(socket : HTTP::WebSocket)
I thought about making these abstract but most of the time you only need 1-2 of them, making about half of their definitions worthless.
- #mounted? : Bool
- #to_s(io)
- #unmount(socket : HTTP::WebSocket)
- #update(socket : HTTP::WebSocket, buffer = IO::Memory.new)
- #update(socket : HTTP::WebSocket, buffer = IO::Memory.new, &)
Macro Summary
Constructor Detail
Class Method Detail
Instance Method Detail
def mount(socket : HTTP::WebSocket)
#
I thought about making these abstract but most of the time you only need 1-2 of them, making about half of their definitions worthless.