Created
November 6, 2016 04:36
-
-
Save reza-ryte-club/745dcb028764e2d44e0b790895db28e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src=”/socket.io/socket.io.js”></script> | |
<script> | |
$(document).ready(() => { | |
var socket = io(); | |
socket.on(‘generated notification’, notificationString => { | |
// show the notification | |
var notification | |
= new Notification(‘Notification,{ | |
title: ‘notificationString’, | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should check syntax.