updated multiplexer client and server to notify listeners of state change