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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user