JavaScript 消息推送库 Pusher-js

码农软件 · 软件分类 · 网站API · 2019-03-10 10:12:37

软件介绍

Pusher-js 是 Pusher webservice 的 JavaScript 客户端,可利用 Pusher 提供的服务实现消息的推送。

该源码中包含:

  • websocket-js
  • sockjs-client

示例代码:

var socket = new Pusher('MY_API_KEY');
var my_channel = socket.subscribe('my-channel');
socket.bind('new-comment',
  function(data) {
    // add comment into page
  }
);

本文地址:https://www.codercto.com/soft/d/1026.html

Pro Git

Pro Git

Scott Chacon / Apress / 2009-8-27 / USD 34.99

Git is the version control system developed by Linus Torvalds for Linux kernel development. It took the open source world by storm since its inception in 2005, and is used by small development shops a......一起来看看 《Pro Git》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码