Skip to content

Commit 37bec14

Browse files
author
jlengstorf
committed
Added Pusher logging.
1 parent 8bcdfb0 commit 37bec14

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@ This is the demo application that will be built during [Jason Lengtorf][1]'s wor
55
[Future Insights Live][2]. It reads photos with the tag #selfie and displays them instantly
66
using [Instagram's API][3] and [Pusher][4].
77

8+
9+
Copyright and license
10+
---------------------
11+
12+
Copyright (c) 2013 Jason Lengstorf
13+
14+
Licensed under the MIT License (the "License"); you may not use this work
15+
except in compliance with the License. You may obtain a copy of the License in
16+
the LICENSE file, or at:
17+
18+
http://opensource.org/licenses/mit-license.php
19+
20+
Unless required by applicable law or agreed to in writing, software
21+
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
22+
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
23+
License for the specific language governing permissions and limitations under
24+
the License.
25+
26+
827
[1]: http://github.com/jlengstorf
928
[2]: http://futureinsightslive.com/las-vegas-2013/
1029
[3]: http://instagram.com/developer/

index.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<meta charset="utf-8" />
3535

36-
<title></title>
36+
<title>Realtime Workshop by Jason Lengstorf &mdash; Future Insights Live</title>
3737

3838
</head>
3939

@@ -45,9 +45,26 @@
4545
<li class="loading">No selfies yet&hellip; #sadface</li>
4646
</ul><!--/#selfies-->
4747

48+
<footer>
49+
<p>
50+
This demo was created by
51+
<a href="http://www.lengstorf.com/">Jason Lengstorf</a> for use at the
52+
realtime workshop at Future Insights Live 2013. It is released under the
53+
MIT License.
54+
</p>
55+
</footer>
56+
4857
<script src="http://js.pusher.com/2.0/pusher.min.js"></script>
4958
<script>
5059

60+
// Enable pusher logging - don't include this in production
61+
Pusher.log = function(message) {
62+
if (window.console && window.console.log) window.console.log(message);
63+
};
64+
65+
// Flash fallback logging - don't include this in production
66+
WEB_SOCKET_DEBUG = true;
67+
5168
var pusher = new Pusher('867d60a8d5de3996dd25'),
5269
channel = pusher.subscribe('selfies'),
5370
selfies = document.getElementById('selfies');

0 commit comments

Comments
 (0)