Thanks to visit codestin.com
Credit goes to github.com

Skip to content

piaohua/miniweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

小程序

中文文档

This sample is about using http and WebSocket to build a wechat miniprogram based on beego.

Installation

cd $GOPATH/src/miniweb
go get github.com/astaxie/beego
go get github.com/gorilla/websocket
go get github.com/globalsign/mgo
go get github.com/gogo/protobuf
go get github.com/AsynkronIT/protoactor-go
go get github.com/beego/i18n
bee run

Usage

get session by js_code
http://127.0.0.1:8080/ws?js_code=xxx

websocket connection by session
http://127.0.0.1:8080/ws/login?3rd_session=xxx

About

微信小程序接入

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published