There is a page (game), which communicate via WebSocket to the server. I can see the data (frames) in the Chrome Developer Tool. Is it possible to access / modify this communica
Seems like the bug is fixed and available. In the manifest.json you need to explicitly specify the permissions
{
...
"permissions": ["webRequest", "ws://*/*", "wss://*/*"]
...
}
and in the network filters it should be specified as a websocket request.
const networkFilters = {
urls: [
"wss://echo.websocket.org/*"
]
};
chrome.webRequest.onBeforeRequest.addListener((details) => {
const { tabId, requestId } = details;
// do stuff here
}, networkFilters);