greenswitch
greenswitch copied to clipboard
Raise exception when user tries to send a command that requires full socket access but does not have this permission
After connect we'll know if the socket is full or not, just capture that save on a property and check before sending the command.
A good idea is to decorate all the methods that requires it:
@require_socket_full
def uuid_break(self, uuid):
pass