# Path: app.py



import os
import sys
from flask import request
from juggernaut import Juggernaut
from app import app
# -*- coding: utf-8 -*-
"""
    javascript.push
    ~~~~~~~~~~~~~~~

    Push Notifications with socket.io and Juggernaut
    http://flask.pocoo.org/snippets/80/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))




"""
    $ npm install -g juggernaut
    $ juggernaut
    $ pip install juggernaut

    <script type=text/javascript src=http://localhost:8080/application.js></script>
    <script type=text/javascript>
        var jug = new Juggernaut();
        jug.subscribe('channel', function(data) {
            alert('Got message: ' + data);
        });
    </script>
"""



# Path: app.py



# Path: javascript/push_notifications.py
import os
import sys
from flask import request
from juggernaut import Juggernaut
from app import app

# -*- coding: utf-8 -*-
"""
    javascript.push
    ~~~~~~~~~~~~~~~

    Push Notifications with socket.io and Juggernaut
    http://flask.pocoo.org/snippets/80/
"""

sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.dirname(__file__))))




"""
    $ npm install -g juggernaut
    $ juggernaut
    $ pip install juggernaut

    <script type=text/javascript src=http://localhost:8080/application.js></script>
    <script type=text/javascript>
        var jug = new Juggernaut();
        jug.subscribe('channel', function(data) {
            alert('Got message: ' + data);
        });
    </script>
"""



@app.route('/')