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://codercto.com/soft/d/1026.html

Clean Architecture

Clean Architecture

Robert C. Martin / Prentice Hall / 2017-9-20 / USD 34.99

Practical Software Architecture Solutions from the Legendary Robert C. Martin (“Uncle Bob”) By applying universal rules of software architecture, you can dramatically improve developer producti......一起来看看 《Clean Architecture》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具