HTML and CSS Reference
In-Depth Information
Next, include the pusher Javascript library on the page by inserting this script tag just above the closing
</body> tag:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Realtime Web Apps &ndash; Exercise 3-2</title>
</head>
<body>
<h1>Testing Pusher</h1>
<p>
This is a simple demo of how easy it is to integrate Pusher
into an application.
</p>
<script src=" http://js.pusher.com/1.12/pusher.min.js"></script >
</body>
</html>
the next thing to do is connect to pusher. In the following code, replace the appKey variable value with the key
listed in your pusher application credentials.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Realtime Web Apps &ndash; Exercise 3-2</title>
</head>
<body>
<h1>Testing Pusher</h1>
<p>
This is a simple demo of how easy it is to integrate Pusher
into an application.
</p>
<script src=" http://js.pusher.com/1.12/pusher.min.js"></script >
<script type="text/javascript">
var appKey =' 079be339124bac43c45c';
var pusher = new Pusher(appKey);
</script>
</body>
</html>
Search WWH ::




Custom Search