Add Sentry instrumentation for JavaScript

This commit is contained in:
Sebastian Serth
2023-05-09 21:15:23 +02:00
parent aa05fcadf8
commit 240fbc5a3b
12 changed files with 166 additions and 59 deletions

View File

@@ -14,6 +14,10 @@ CommandSocket.prototype.onError = function(callback){
this.websocket.onerror = callback
};
CommandSocket.prototype.onClose = function(callback){
this.websocket.onclose = callback
};
/**
* Allows it to register an event-handler on the given cmd.
* The handler needs to accept one argument, the message.