泡泡IM是一套完整的仿微信聊天源码 ,源码开源未加密,包含完整的前端、后端、数据库、文档。此仿微信源码项目完全独立,不依赖第三方即时通讯服务,可直私有化部署聊天系统。可用huilder等软件打包成微信小程序,app。
文档全面,代码精简规范、低耦合、注释全面、接口清晰,非常有利于二次开发。
仿微信聊天源码对外销售,购买请进入 泡泡IM官网
基于仿微信聊天源码的界面设计。后端基于websocket高性能即时通讯解决方案workerman开发,api接口则基于tp5开发。
前端基于vue开发,前后端分离,模块化开发。以websocket协议完成即时通讯,保证消息数据即时传输。自带网络检测,断网自动重连,保证消息可靠送达。支持SSL/TLS通信隧道加密。即时通讯部分与业务逻辑高度解偶。
function Subscriber(options) {
this.doNotConnect = 0;
options = options || {};
options.heartbeat = options.heartbeat || 25000;
options.pingTimeout = options.pingTimeout || 10000;
this.config = options;
this.uid = 0;
this.channels = {};
this.connection = null;
this.pingTimeoutTimer = 0;
Subscriber.instances.push(this);
this.connect();
}
Subscriber.prototype.checkoutPing = function() {
var _this = this;
setTimeout(function () {
if (_this.connection.networkState == 'established') {
_this.connection.send('1');
if (_this.pingTimeoutTimer) {
clearTimeout(_this.pingTimeoutTimer);
_this.pingTimeoutTimer = 0;
}
_this.pingTimeoutTimer = setTimeout(function () {
_this.connection.closeAndClean();
if (!_this.connection.doNotConnect) {
_this.connection.waitReconnect();
}
}, _this.config.pingTimeout);
}
}, this.config.heartbeat);
};
Subscriber.prototype.channel = function (name) {
return this.channels.find(name);
};
Subscriber.prototype.allChannels = function () {
return this.channels.all();
};
仿微信式消息交互体验
1、支持发语音、文字、图片、表情、文件
2、支持一对一私聊和多对多群聊,一对一视频聊天
3、群聊支持建群、退群、解散群组、禁言、踢人、拉人进群、群备注等功能
4、个人信息支持更改昵称、头像、个性签名等
5、支持查看历史消息、离线消息
6、支持好友查找、好友申请、同意好友申请、拒绝申请、删除好友,好友备注
7、支持消息撤回,脏字过滤
8、支持通讯录,按字母顺序排列
9、管理后台功能
原文连接:泡泡IM
哪里下载呢