**Figure 5.2-2: Example message flow with WebSocket binding**
1. The ADN-AE wants to register to its registrar MN-CSE. If a WebSocket connection does not exist, it is established by the following steps 2) and 3). It is assumed that the ADN-AE knows the point of access (i.e. WebSocket URI specified in IETF RFC 6455 <ahref="#_ref_1">[1]</a>) under which the registrar CSE can be reached with WebSocket binding.
1. The WebSocket client opens handshake to the server with subprotocol name oneM2M.json following IETF RFC 6455 <ahref="#_ref_1">[1]</a>.
2. The WebSocket client opens handshake to the server with subprotocol name oneM2M.json following IETF RFC 6455 <ahref="#_ref_1">[1]</a>.
If the server can be reached under the WebSocket URI ws://example.net:9000/, the client handshake may look as follows: