O'Reilly logo

JUNOS Automation Cookbook by Adam Chappell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Web client application

In the client application, life starts when the user downloads interfaces.html, which is served by the server in response to almost any URL on the server, for convenience. interfaces.html is a simple HTML5 document with a basic layout which defines a heading and an empty drop-down selection box.

The Javascript attached to interfaces.html defines the WebClient class, which encapsulates the main cut and thrust of the web client logic. The web client is triggered as soon as the page is loaded and starts by connecting a socket.io resource to the server for real-time communications. When the server notices us connect, he responds with a config event. The event structure contains a configuration data package which gives us ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required