Livekitex.TwirpUtils (livekitex v0.1.0)

Utilities for handling Twirp communication and errors.

Summary

Functions

Creates Tesla client configuration for Twirp requests.

Formats Twirp errors into more user-friendly error tuples.

Handles Twirp responses and converts them to standard Elixir patterns.

Converts a protobuf ParticipantInfo to a map.

Converts a protobuf Room to our internal Room struct.

Converts a protobuf TrackInfo to a map.

Functions

create_client(base_url, token \\ nil, opts \\ [])

Creates Tesla client configuration for Twirp requests.

format_twirp_error(error)

Formats Twirp errors into more user-friendly error tuples.

handle_twirp_response(arg)

Handles Twirp responses and converts them to standard Elixir patterns.

proto_to_participant(proto_participant)

Converts a protobuf ParticipantInfo to a map.

proto_to_room(proto_room)

Converts a protobuf Room to our internal Room struct.

proto_to_track(proto_track)

Converts a protobuf TrackInfo to a map.