Synthetic Monitoring
Monitors
WebSocket Monitor - Monitor WebSocket Connections
6 min
the websocket monitor verifies the availability and performance of websocket endpoints by establishing persistent connections, sending messages, and validating responses creating a new websocket monitor navigate to synthetic monitoring > monitors click add new select websocket monitor websocket connections from the monitor type dropdown basic settings url enter the full websocket url (e g , ws\ //example com/socket or wss\ //example com/socket ) to monitor monitor name provide a descriptive name for the websocket monitor check interval set the frequency at which the monitor attempts to establish and test the websocket connection timeout define the maximum time allowed for the monitor to complete the connection and response validation monitoring locations choose one or more geographic locations from which the websocket checks will be executed notification settings select notification channels to receive alerts when the websocket monitor detects connection failures or downtime websocket configuration path specify the url path used during the websocket handshake (e g , /ws/chat ) header add custom http headers sent during the initial websocket handshake request subprotocols (comma separated) define optional websocket subprotocols that establish higher level communication rules (e g , chat,superchat ) messages to send (one per line) list messages to transmit after connection establishment, with one message per line assertions assertions validate key aspects of the websocket connection lifecycle handshake status confirms whether the initial websocket handshake succeeded or failed connect time (ms) measures the duration to complete the websocket handshake in milliseconds time to first message (ms) tracks the time from connection establishment to receiving the first incoming message response message validates the actual messages received from the websocket server message count counts the number of messages received during the monitoring session close code checks the websocket close code indicating the reason for connection closure close message examines the optional human readable message accompanying the close code metrics metrics available to be monitored in dashboard section metric name type description labels kloudmate synthetic check websocket time to first message gauge time from connection until the first message is received check id, check name, check type, target, workspace id, location kloudmate synthetic check connect time gauge time taken to establish a connection applicable to http, tcp, udp, websocket, and ssl checks check id, check name, check type, target, workspace id, location related resources docid 0zztpf m5aszqvsp2oonx