Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websockets protocol #34

Merged
merged 29 commits into from
Dec 17, 2023
Merged

Websockets protocol #34

merged 29 commits into from
Dec 17, 2023

Conversation

roxblnfk
Copy link
Member

@roxblnfk roxblnfk commented Dec 10, 2023

Added support for websockets.
Any WS connection will receive a timer messages.

Note: It doesn't support any compression extensions and chunked transactions.

An experimental Web UI, similar to the one in Buggregator Server, has been introduced.
You can launch it by adding the --ui flag when starting the Trap server.
In this case, events will be sent simultaneously to the console and to the open websocket connections of browser interfaces.

flowchart TB
    Sentry & SMTP & VarDump & Monolog --> P([Port 9912])
    HTTP(Any HTTP) --> P
    subgraph Trap Server
        P --> TI(Traffic\nInspector)
        TI -->|Raw traffic| DIS(Dispatchers\nwith parsers)
        DIS ---->|Events| Senders
        subgraph Senders
            subgraph SendT [Console]
                Renderer
            end
            subgraph SendF [Filesystem]
                Writer
            end
            subgraph SendW [Frontend]
                EvMap(Events mapper) --> Collector
                Collector(Collector) <--> CP(Connection pool\nPort 8000)
            end
        end
    end
    CP <-->|Websocket\nand HTTP| WebUI
    Renderer --> Terminal
    Writer --> Files
Loading

Closes #21

@roxblnfk roxblnfk merged commit 1ff86bd into master Dec 17, 2023
18 checks passed
@roxblnfk roxblnfk deleted the websockets branch December 17, 2023 08:21
@roxblnfk roxblnfk added this to the 1.3.x milestone Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Websockets support
1 participant