GithubHelp home page GithubHelp logo

imhazige / simpleddp-wechat-miniprogram-dirver Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 2.0 8 KB

微信小程序Meteor DDP协议整合驱动,基于simpleddp,支持uniapp,wepy

JavaScript 54.06% Shell 2.08% TypeScript 43.86%
wei-xin-xiao-cheng-xu wechat-mini-program meteor ddp-client

simpleddp-wechat-miniprogram-dirver's Introduction

simpleddp-wechat-miniprogram-dirver

整合meteor DDP 协议(使用simpleddp)和微信小程序,支持uniappwepy

uniapp中使用

npm install simpleddp simpleddp-plugin-login simpleddp-wechat-miniprogram-dirver --save

const simpleDDP = require('simpleddp');
const simpleDDPLogin = require('simpleddp-plugin-login').simpleDDPLogin;

import { UniappDriver } from 'simpleddp-wechat-miniprogram-dirver/UniappDriver';

const config = {
  endpoint: "ws://localhost:3000/websocket",
  SocketConstructor: UniappDriver,
  reconnectInterval: 5000
};
const server = new simpleDDP(config, [simpleDDPLogin]);

wepy中使用

npm install simpleddp simpleddp-plugin-login simpleddp-wechat-miniprogram-dirver --save

const simpleDDP = require('simpleddp');
const simpleDDPLogin = require('simpleddp-plugin-login').simpleDDPLogin;

import { WepyDriver } from 'simpleddp-wechat-miniprogram-dirver/WepyDriver';

const config = {
  endpoint: "ws://localhost:3000/websocket",
  SocketConstructor: WepyDriver,
  reconnectInterval: 5000
};
const server = new simpleDDP(config, [simpleDDPLogin]);

具体DDP协议使用

参见simpleddp文档

simpleddp-wechat-miniprogram-dirver's People

Contributors

imhazige avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

olet hanovo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.