|#||Step||Topic or Reference|
|1||Learn about supported browsers, operating systems, and platform versions.||Release Notes|
|2||Learn how to use the common methods of the HTML5 WebSocket API in your client.||Interact with Kaazing Gateway Using the WebSocket API|
Kaazing Gateway Has Full WebSocket API Compliance
- In a terminal, navigate to the folder for the WebSocket tutorial,
npm installto build the tutorial. You might need to execute the command with admin credentials. If you need to install Node.js® and update npm, see https://docs.npmjs.com/getting-started/installing-node.
node server.jsto run the included Node.js® server component (server.js).
- In a browser, enter the URL
- Send messages to the Echo service running at the public Kaazing WebSocket Gateway address
ws://demos.kaazing.com/echo, and see an Echo reply message from the Gateway.
To view the WebSocket information on the network, do the following:
- Run Google Chrome with Chrome’s Developer Tools opened. To open the Developer Tools on Windows and Linux use Control+Shift+I. On a Mac, use ⌥⌘I.
- Open the Network panel. For more information, see Network performance on Google Developers.
- Click WS in the panel.
- In the demo, click Connect.
- The panel displays the new WebSocket connection.
- In the Name column, click the name.
- The Headers and Frames tabs display the details of the connection. In the Headers tab you can see the request and response headers used to establish the WebSocket handshake and connection.
- Click the Frames tab and then click Send in the demo.
- In the Name column, click the connection icon again and the message is displayed in the Frames tab.
- You have now seen both the information used to establish the WebSocket connection and the contents of WebSocket frames (messages) sent over the connection.