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
| Update 02.Apr.2026: | |
| I made a script that will do all the needed checks and install SimHub: | |
| https://github.com/srlemke/SimHub_on_Linux | |
| There is also a V2 in the works that also can install CrewChief: | |
| https://github.com/srlemke/SimHub_on_Linux/tree/With-Crewchief | |
| Automatically adds and configures plugins for LMU, it also detects custom Proton. | |
| Automatically adds dash.exe when Raceroom. | |
| Fixes common issues, like removal of dotnet4 Steam stub |
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
| // utilizes the browser eventsystem | |
| // usefull in cases where you need communication between independent components | |
| // registered events are automatically removed onunload with preserving any other onunload handler | |
| var eventsMixin = function(target) { | |
| var _subscriptions = []; | |
| target.broadcast = function(type, payload) { | |
| var ev = new CustomEvent(type, { | |
| detail: payload, |
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
| /***************************************** | |
| /* DOM touch support module | |
| /*****************************************/ | |
| if (!window.CustomEvent) { | |
| window.CustomEvent = function (event, params) { | |
| params = params || { bubbles: false, cancelable: false, detail: undefined }; | |
| var evt = document.createEvent('CustomEvent'); | |
| evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); | |
| return evt; | |
| }; |
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
| var WebSocketServer = require('ws').Server; | |
| var wss = new WebSocketServer({port: 8080}); | |
| var jwt = require('jsonwebtoken'); | |
| /** | |
| The way I like to work with 'ws' is to convert everything to an event if possible. | |
| **/ | |
| function toEvent (message) { | |
| try { |