feat: add complete V server example and improve runner

- Create new `server.vsh` example with custom tools
- Update `example.sh` to use the new V server script
- Improve README with new, clearer running instructions
- Fix server to not send responses for notifications
- Remove debug logging statements from server and handler
This commit is contained in:
Mahmoud-Emad
2025-07-27 16:01:28 +03:00
parent 5cee9a4d5a
commit 6357ae43db
7 changed files with 159 additions and 14 deletions

View File

@@ -68,7 +68,6 @@ pub fn (handler Handler) handler(client &websocket.Client, message string) strin
// - The JSON-RPC response as a string, or an error if processing fails
pub fn (handler Handler) handle(message string) !string {
// Extract the method name from the request
log.error('debugzo1')
method := decode_request_method(message)!
// log.info('Handling remote procedure call to method: ${method}')
// Look up the procedure handler for the requested method
@@ -77,8 +76,6 @@ pub fn (handler Handler) handle(message string) !string {
return method_not_found
}
log.error('debugzo3')
// Execute the procedure handler with the request payload
response := procedure_func(message) or { panic(err) }
return response