Skip to content
forked from Mogball/wcomms

Go libs for Waterloop communication server

Notifications You must be signed in to change notification settings

waterloop/wcomms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WComms

Communication packet protocol for sending and serializing pod data across multiple servers

Usage

type CommPacketJson

type CommPacketJson struct {
	Time int64     `json:"time"`
	Type string    `json:"type"`
	Id   uint8     `json:"name"`
	Data []float32 `json:"data"`
}

func PacketEncodeJson

func PacketEncodeJson(packet *wbin.CommPacket) ([]byte, error)

Serializes binary communication packet to JSON string/bytes

func PacketDecodeJson

func PacketDecodeJson(encoded []byte) (*wbin.CommPacket, error)

Deserializes JSON string/bytes to binary communication packet

About

Go libs for Waterloop communication server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%