Packages
Multi-surface application runtime for Elixir. One TEA module renders to terminal, browser (LiveView), SSH, and MCP (agents). 30+ widgets, flexbox + CSS grid, AI agent runtime, distributed swarm with CRDTs, time-travel debugging, session recording, sandboxed REPL, and agentic commerce.
Current section
Files
Jump to
Current section
Files
lib/raxol_web/channels/user_socket.ex
defmodule RaxolWeb.UserSocket do
use Phoenix.Socket
channel("terminal:*", RaxolWeb.TerminalChannel)
channel("demo:terminal:*", RaxolWeb.DemoTerminalChannel)
@impl true
def connect(_params, socket, connect_info) do
socket = assign(socket, :peer_data, connect_info[:peer_data])
{:ok, socket}
end
@impl true
def id(_socket), do: nil
end