socketserver

command module
v0.0.0-...-6205391 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

README

SocketServer

golang socket server

消息结构体

type message struct {
	From   string //`slave/master`
	To     string //`slave/master/allslave`
	Group  string //`group_name`
	Action string //`join,chat`
	Msg    string //`json`
	Role   string //`slave/master/system`
}

step1

join

{"From":"slave","To":"","Group":"房间1","Action":"join","Msg":"","Role":"slave"}

step2

chat

{"From":"slave","To":"master","Group":"房间1","Action":"chat","Msg":"{}","Role":"slave"}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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