https://github.com/neonarray/snitch_flutter
An application to display debug logs via a socket connection.
https://github.com/neonarray/snitch_flutter
dart flutter socket
Last synced: about 1 year ago
JSON representation
An application to display debug logs via a socket connection.
- Host: GitHub
- URL: https://github.com/neonarray/snitch_flutter
- Owner: NeonArray
- Created: 2023-08-02T17:48:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-02T18:29:45.000Z (almost 3 years ago)
- Last Synced: 2025-03-25T04:14:55.443Z (about 1 year ago)
- Topics: dart, flutter, socket
- Language: Dart
- Homepage:
- Size: 233 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snitch
An application to display debug logs via a socket connection.

## Usage
To send data to the app, open a socket connection to `localhost:9999` and write data to it.
The app will display any data you send it, but if you want syntax highlighting you should send it as JSON in the following schema.
```json
{
"origin": {
"file": "path/to/file",
"lineNumber": 23,
"hostname": "my-computer.local"
},
"language": "dart",
"value": "json-stringified-values"
}
```
To send commands to the app you can add the `command` key to the JSON, passing it the command to execute. Note that you can't pass arbitrary commands as they won't be recognized.
```json
{
"command": "clear"
}
```