This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lazy_static! { | |
static ref GUARD: Mutex<Option<sentry::internals::ClientInitGuard>> = Mutex::new(None); | |
} | |
*GUARD.lock().unwrap() = Some(sentry::init(dotenv!("SENTRY_DSN"))); | |
sentry::integrations::panic::register_panic_handler(); | |
let next = panic::take_hook(); | |
panic::set_hook(Box::new(move |info| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>RFID game</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.min.js" type="text/javascript"></script> | |
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" type="text/javascript"></script> | |
<script type="text/javascript" language="javascript"> | |
var mqtt | |
var state = {} | |
function onConnect() { | |
console.log("Connected") |