0.0.6 • Published 5 years ago

adonis-websocket-wechatmp v0.0.6

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Websocket Client for WeChat Mini Programs

This plugin is built for developers using Adonis JS with Websockets enabled on the backend and WeChat Mini Programs on the frontend.

You can use all client APIs available in the official browser client (docs here):

Adonis Websocket Client Docs

Setup

  1. Install the package
npm install adonis-websocket-wechatmp

You may freely use this NPM package in 3rd party frameworks like Taro, Wepy, MPVue, etc.

Vanilla Framework: NPM package install guide

  1. Then in your Mini Program project:

    /pages/page/page.js

    import Ws from 'adonis-websocket-wechatmp'
    const ws = Ws('ws:// -or- wss://your-url-here')
    
    Page({
      data: {},
      onLoad () {
          // init websocket connection
      }
    })
0.0.6

5 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago