spec/support/fake_mqtt_server.rb
# Stop the thread and close the socket
Stop the thread and close the socket
Stop the thread and close the socket
def stop
    logger.info "Stopping fake MQTT server"
    @thread.kill if @thread and @thread.alive?
    @thread = nil
    @socket.close unless @socket.nil?
    @socket = nil
  end
def stop logger . info "Stopping fake MQTT server" @thread . kill if @thread and @thread . alive? @thread = nil @socket . close unless @socket . nil? @socket = nil end
Stop the thread and close the socket
Stop the thread and close the socket