fix: fixed socket error

fixed: socket error with a buffer (js).
added: logging system in bridge (py)