feat(tingly): add real platform service with WS protocol - #871
Open
0x0079 wants to merge 1 commit into
Open
Conversation
The existing imbot/platform/tingly was an in-process test harness. This adds a genuine tingly platform service that bots and chat clients connect to over WebSocket, sitting alongside telegram/wechat/etc. as a peer IM backend — but intentionally minimal because tingly typically deploys next to the bot. - imbot/platform/tingly/wire: shared JSON-over-WS protocol (Frame envelope, Hello/Welcome handshake, bot.send/edit/delete/react and chat.send/callback payloads) - imbot/platform/tingly/ws_transport.go: WSTransport implementing the existing Transport seam, with reconnect + ack tracking; the InProcessTransport keeps working unchanged for tests - tingly/server: WebSocket router with per-(bot,chat) jsonstore-backed message log and history replay on chat connect - tingly/chatclient: small SDK for chat-side participants - E2E test covering chat→bot, bot→chat, edit propagation, and history replay across bot restart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The existing imbot/platform/tingly was an in-process test harness. This adds a genuine tingly platform service that bots and chat clients connect to over WebSocket, sitting alongside telegram/wechat/etc. as a peer IM backend — but intentionally minimal because tingly typically deploys next to the bot.