Skip to content

Instantly share code, notes, and snippets.

@jespertheend
jespertheend / WebSocketLatency.js
Last active November 21, 2025 16:00
Simulate latency and intermittent connection drops on WebSockets.
// ==UserScript==
// @name WebSocket latency tester
// @namespace https://jespertheend.com/
// @version 0.0.2
// @description Simulate latency and intermittent connection drops on WebSockets.
// @author Jesper van den Ende
// @match *://*/*
// @grant none
// @run-at document-start
// ==/UserScript==