GitHub user dosubot[bot] added a comment to the discussion: How to setup 
websocket for Superset?

<!-- Answer -->
The configurations for WebSocket support, such as port, logging, Redis 
settings, and JWT configurations, are not found in `config.py` under the 
Superset directory. Instead, these settings are typically defined in the 
`config.json` file for the `superset-websocket` service. You should ensure that 
this file is correctly set up as per the example provided in the previous 
response.

For changes in `superset_config.py`, you need to enable WebSocket support by 
setting the following configurations:

```python
FEATURE_FLAGS = {
    "GLOBAL_ASYNC_QUERIES": True
}

GLOBAL_ASYNC_QUERIES_TRANSPORT = "ws"
GLOBAL_ASYNC_QUERIES_WEBSOCKET_URL = "ws://<host>:<port>/"
```

Replace `<host>` and `<port>` with the appropriate values for your setup. These 
settings enable global asynchronous queries and specify the WebSocket transport 
and URL 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset-websocket/README.md)</sup>.


<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*

---
<sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/4e3baa8b-4a28-4a1e-a776-27cd6dbffebc?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/4e3baa8b-4a28-4a1e-a776-27cd6dbffebc?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/4e3baa8b-4a28-4a1e-a776-27cd6dbffebc?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/4e3baa8b-4a28-4a1e-a776-27cd6dbffebc?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/4e3baa8b-4a28-4a1e-a776-27cd6dbffebc?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/4e3baa8b-4a28-4a1e-a776-27cd6dbffebc?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/4e3baa8b-4a28-4a1e-a776-27cd6dbffebc?feedback_type=other)</sup>


GitHub link: 
https://github.com/apache/superset/discussions/33293#discussioncomment-12988209

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to