# Jellyfish Elixir Server SDK

[![API Docs](](

Elixir server SDK for [Jellyfish](
Currently it allows for:

- making API calls to Jellyfish server (QoL wrapper for HTTP requests)

## Installation

The package can be installed by adding `jellyfish_server_sdk` to your list of dependencies in `mix.exs`:

def deps do
    {:jellyfish_server_sdk, "~> 0.1.1"}

## Usage

Make API calls to Jellyfish (authentication required, for more information see [Jellyfish docs](

client ="", "your-jellyfish-token")

# Create room
{:ok, %Jellyfish.Room{id: room_id}} = Jellyfish.Room.create(client, max_peers: 10)

# => "8878cd13-99a6-40d6-8d7e-8da23d803dab"

# Add peer
{:ok, %Jellyfish.Peer{id: peer_id}, peer_token} = Jellyfish.Room.add_peer(client, room_id, "webrtc")

# Delete peer
:ok = Jellyfish.Room.delete_peer(client, room_id, peer_id)

## Copyright and License

Copyright 2023, [Software Mansion](

[![Software Mansion](](

Licensed under the [Apache License, Version 2.0](LICENSE)