@osmiumchat/proto
v0.1.1
Published
Protocol types for Osmium
Readme
@osmiumchat/proto
Generated protobuf types for Osmium.
You probably want @osmiumchat/sdk instead.
Usage
import { osmium } from "@osmiumchat/proto";
const msg = osmium.client.messages.SendMessage.create({
chatRef: { user: { userId: 123n } },
message: "hello",
});
const bytes = osmium.client.core.ClientMessage.encode(clientMessage).finish();
const decoded = osmium.client.core.ServerMessage.decode(bytes);Codegen
The types are generated from the .proto files in the proto/ submodule using @tanglechat/protobufjs-cli:
pnpm build