Don't coerce secure_websocket configuration variable to String. This way, false values don't come through to the JS side as string "false" (which evaluates as true).
Add an onerror block to the websocket server, for debugging.
Provide an example unicorn config.