mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-06 15:07:52 +08:00
9 lines
225 B
Elixir
9 lines
225 B
Elixir
defmodule ElixirKit do
|
|
def start do
|
|
Supervisor.start_child(ElixirKit.Supervisor, {ElixirKit.Server, self()})
|
|
end
|
|
|
|
def publish(name, data) do
|
|
GenServer.call(ElixirKit.Server, {:send_event, name, data})
|
|
end
|
|
end
|