hero

weapp.socket.io

Write your awesome realtime Wechat mini program

Get Started →

Socket.io Style

Full feature & style of socket.io, do not change your habits

Polling & Websocket

Create polling connection default, auto switch to websocket mode if support

Binary Support

it's possible to send any blob back and forth: image, audio, video.

Style same to on browser

const io = require('./yout_path/weapp.socket.io.js')

const socket = io('http://localhost:8000')

socket.on('news', d => {
  console.log('received news: ', d)
})

socket.emit('news', {
  title: 'this is a news'
})