socket

package
v0.0.0-...-8b7763f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2016 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Server

type Server struct {
	beego.Controller
	IOServer *gosocket.Server
}

Server - socketio server

func NewServer

func NewServer() *Server

func (*Server) Get

func (s *Server) Get()

func (*Server) OnError

func (s *Server) OnError(msg string)

OnError 连接被服务器断开,或其它错误

func (*Server) OnHealth

func (s *Server) OnHealth()

OnHealth 连接恢复

func (*Server) OnRecv

func (s *Server) OnRecv(event int32, operate int32, id int64, group int64, from int64, to int64, body string)

OnRecv 这函数理论上是多线程调用,客户端需要注意下

func (*Server) OnUnHealth

func (s *Server) OnUnHealth(msg string)

OnUnHealth 连接异常

func (*Server) Post

func (s *Server) Post()

func (*Server) Response

func (s *Server) Response(data string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL