Skip to content

Instantly share code, notes, and snippets.

View cletrix's full-sized avatar

Cleyton Pedroza de Almeida cletrix

View GitHub Profile
@cletrix
cletrix / client.py
Created January 1, 2023 21:15 — forked from stevvooe/client.py
A minimal python to go json-rpc implemention, sans HTTP
import json
import socket
s = socket.create_connection(("127.0.0.1", 5090))
s.sendall(json.dumps(({"id": 1, "method": "Hello.Hello", "params": ["hello"]})))
print s.recv(4096)