Improved protocol

This commit is contained in:
2025-12-22 12:45:48 +01:00
parent 75dfdac920
commit be4917ce80
8 changed files with 491 additions and 153 deletions
+1 -11
View File
@@ -30,17 +30,7 @@ export default function ChannelView({
(m) => m.channel_id === app.currentChannel?.id
) || []
}
sendMessage={(message) => {
serverRef.current?.send(
JSON.stringify({
type: "send_message",
params: {
channel_id: app.currentChannel?.id,
contents: message,
},
})
);
}}
sendRequest={(req) => serverRef.current?.send(JSON.stringify(req))}
/>
);