Skip to content

UsingNet/message-center

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

启动

生产环境: npm start 开发环境: npm run dev

消息服务器

后台

获取 Token

GET /api/message/agent/token

链接 socket

import io from 'socket.io-client'
var socket = io('http://ws.dev.usingnet.net/?token={token}');

// 消息
socket.on('message', function() {
    ...
});

// 新消息
socket.on('newmessage', function() {
    ...
})

// 通知
socket.on('notify', function() {
    ...
});

IM

获取 token

GET /api/message/agent/token?track_id={track_id}&tid={tid}&

链接 socket

import io from 'socket.io-client'
var socket = io('http://ws.dev.usingnet.net');

socket.on('message', function() {

});

Track

/track
  • track_id
  • page_id
  • title
  • referrer
  • user_info

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published