Full feature & style of socket.io, do not change your habits
Create websocket connection default, Mini-Program not support Polling
it's possible to send any blob back and forth: image, audio, video.
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'
})