"You Otter be collecting feedback"
I'll be using the README to do document driven development through this project.
- Import the client
import { FeedbackClient } from "@feedback-otter/client";
- initialize with your backend communication
- REST - POST request (PUT is also available with field
restRequest:"PUT"
) - GraphQL - Mutation with the following schema
message: String, location: String, context: JSON
- tRPC -
- Raw WebSocket
- Socket.io
const client = new FeedbackClient({
requestType: "REST",
url: "https://example.com/feedback",
});
See the examples folder for how to use the packages