modules/websockets: Added some extra debug/diagnostics