Memgraph allows you to connect to its monitoring server via WebSocket and
receive certain information from it.
For example, each log will be forwarded to all the connected clients.
To connect to Memgraph's WebSocket Server use the following URL:
The default host used is
localhost but that can be changed using the
--monitoring-host configuration flag.
The default port used is
7444 but that can be changed using the
--monitoring-port configuration flag.
Connecting with a secure connection (WSS)
As for the Bolt connection, SSL is also supported. Same flags are used for both
types of connection -
If both of them are set, you will need to use the following URL to connect to the WebSocket server:
If the authentication is used, Memgraph won't send the message to a certain connection until it's authenticated.
To authenticate, a JSON with the credentials in the following format is required:
If the credentials are valid, the connection will be made, and the client will receive the messages. As a response, the client should receive the following message:
"message": "User has been successfully authenticated!"
If they are invalid or the first message is in the invalid format, the connection is dropped. As a response, the following message is sent:
If authentication is not used (there are no users present in Memgraph), no authentication message is expected, and no response will be returned.
Permission for connecting through WebSocket is controlled by the
Each log that is written to the log file is forwarded to the connected clients in the following format: