Add the ability to disable events and use relative url in config.

This requires user test before merge!
In this point dosn't enter if the websockets service is, for example ws.example.com, it must be something like:

```if not startswith(url, "wss:") and not startswith(url, "ws:")```