Skip to content

Instantly share code, notes, and snippets.

@reza-ryte-club
Created November 6, 2016 04:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save reza-ryte-club/745dcb028764e2d44e0b790895db28e9 to your computer and use it in GitHub Desktop.
<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>
@piotr-jozwiak
Copy link

You should check syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment