Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WebSocketResponse<ResponseType>

A websocket response. Includes the return type. Can be used like:

if (op == UserOperation.Search) {
  let data = wsJsonToRes<SearchResponse>(msg).data;
}

Type parameters

  • ResponseType

Hierarchy

  • WebSocketResponse

Index

Properties

Properties

data

data: ResponseType

This contains the data for a websocket response.

The correct response type if given is in LemmyHttp.

op

Generated using TypeDoc