Instead of reading from the socket char by char, this PR adds a way to use the buffer - the @socket.readpartial(n) - this is useful for larger messages coming to the client
also adding a way to change the check_interval, i.e. the time the thread is sleeping between checking if there is something new on the socket
@socket.readpartial(n)
- this is useful for larger messages coming to the clientcheck_interval
, i.e. the time the thread is sleeping between checking if there is something new on the socket