Soulless.Protocol.SpectatorRPC (Soulless v0.2.0)

View Source

Summary

Types

cache()

@type cache() :: %{required(non_neg_integer()) => atom() | String.t()}

t()

@type t() :: %Soulless.Protocol.SpectatorRPC{
  body: map(),
  kind: :request | :response,
  request_id: non_neg_integer(),
  rpc: String.t()
}

Functions

parse(binary, rpc_name_cache)

@spec parse(binary(), cache()) :: {:ok, t(), cache()} | {:error, String.t()}

serialize(message)

@spec serialize(t()) :: binary()