Do websockets enabled check in a advanced-compile-safe way