@@ -8,6 +8,8 @@ import Widgets
88import Widgets: node, AbstractWidget
99using Logging
1010using UUIDs
11+ using Mux
12+ using WebSockets
1113
1214include (" ../deps/bundlepaths.jl" )
1315
@@ -93,35 +95,16 @@ function prefetch_provider_file(basename)
9395 (file = filepath, code = code)
9496end
9597
96- provider_mux = prefetch_provider_file (" mux.jl" )
97- provider_blink = prefetch_provider_file (" blink.jl" )
98+ include (" providers/mux.jl" )
99+ include (" providers/generic_http.jl" )
100+
98101provider_ijulia = prefetch_provider_file (" ijulia.jl" )
99- provider_generic_http = prefetch_provider_file (" generic_http.jl" )
100102
101103function __init__ ()
102104 push! (Observables. addhandler_callbacks, WebIO. setup_comm)
103- @require Mux= " a975b10e-0019-58db-a62f-e48ff68538c9" begin
104- include_string (@__MODULE__ , provider_mux. code, provider_mux. file)
105- end
106- @require Blink= " ad839575-38b3-5650-b840-f874b8c74a25" begin
107- # The latest version of Blink defines their own WebIO integration
108- # (after https://github.com/JunoLab/Blink.jl/pull/201).
109- if isdefined (Blink. AtomShell, :initwebio! )
110- return
111- end
112- Base. depwarn (
113- " Please upgrade Blink for a smoother integration with WebIO." ,
114- :webio_blink_upgrade ,
115- )
116- include_string (@__MODULE__ , provider_blink. code, provider_blink. file)
117- end
118105 @require IJulia= " 7073ff75-c697-5162-941a-fcdaad2a7d2a" begin
119106 include_string (@__MODULE__ , provider_ijulia. code, provider_ijulia. file)
120107 end
121- @require WebSockets= " 104b5d7c-a370-577a-8038-80a2059c5097" begin
122- include_string (@__MODULE__ , provider_generic_http. code, provider_generic_http. file)
123- end
124-
125108end
126109
127110end # module
0 commit comments