diff --git a/src/Stipple.jl b/src/Stipple.jl index 0f48b0e..71ec16a 100644 --- a/src/Stipple.jl +++ b/src/Stipple.jl @@ -460,7 +460,8 @@ function init_storage() :modes__ => :(modes__::Stipple.LittleDict{Symbol,Int} = Stipple.LittleDict{Symbol,Int}()), :isready => :(isready::Stipple.R{Bool} = false), :isprocessing => :(isprocessing::Stipple.R{Bool} = false), - :fileuploads => :(fileuploads::Stipple.R{Dict{AbstractString,AbstractString}} = Dict{AbstractString,AbstractString}()) + :fileuploads => :(fileuploads::Stipple.R{Dict{AbstractString,AbstractString}} = Dict{AbstractString,AbstractString}()), + :ws_disconnected => :(ws_disconnected::Stipple.R{Bool} = false) ) end diff --git a/src/stipple/reactivity.jl b/src/stipple/reactivity.jl index a4286fb..89ed905 100644 --- a/src/stipple/reactivity.jl +++ b/src/stipple/reactivity.jl @@ -171,7 +171,7 @@ function setchannel(m::M, value) where {M<:ReactiveModel} setfield!(m, CHANNELFIELDNAME, ChannelName(value)) end -const AUTOFIELDS = [:isready, :isprocessing, :fileuploads] # not DRY but we need a reference to the auto-set fields +const AUTOFIELDS = [:isready, :isprocessing, :fileuploads, :ws_disconnected] # not DRY but we need a reference to the auto-set fields const INTERNALFIELDS = [CHANNELFIELDNAME, :modes__] # not DRY but we need a reference to the auto-set fields @pour reactors begin @@ -181,6 +181,7 @@ const INTERNALFIELDS = [CHANNELFIELDNAME, :modes__] # not DRY but we need a refe isprocessing::Stipple.R{Bool} = false channel_::String = "" # not sure what this does if it's empty fileuploads::Stipple.R{Dict{AbstractString,AbstractString}} = Dict{AbstractString,AbstractString}() + ws_disconnected::Stipple.R{Bool} = false end @mix Stipple.@with_kw mutable struct old_reactive