js-waku
js-waku copied to clipboard
Report an error when js-waku is running over http and hence cannot connect via WSS
This is a change request
Problem
When a js-waku app is ran on HTTP (not HTTPS) and also not localhost
connection-manager will silently fail to connect to any node.
This is visible when debug:waku*
is enabled, but not in "production" setting
waku:error:connection-manager Error dialing peer 16Uiu2HAmSve7tR5YZugpskMv2dmJAsMUKmfWYEKRXNUxRaTCnsXV - Error occurred during XX handshake: Error occurred while verifying signed payload: TypeError: Cannot read properties of undefined (reading 'digest') +0ms
Proposed Solutions
Surface an error/warning about not using HTTPS and hence not being able to connect to any peers to the dev/user