socket

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BroadCast

func BroadCast(playerIDs []int, cmd uint32, data []byte)

BroadCast to players

func RegisterNode added in v0.0.3

func RegisterNode(name string)

RegisterNode use to service find node to boradcast

func RegisterPlayer

func RegisterPlayer(id int, socketID uint32)

RegisterPlayer to maps

func StartTCP

func StartTCP(port uint16)

StartTCP server

func StartWs

func StartWs(port uint16)

StartWs websocket

func StartWss added in v0.0.2

func StartWss(port uint16, cert string, key string)

StartWss websocket with ssl

func UnRegisterPlayer

func UnRegisterPlayer(id int)

UnRegisterPlayer from maps

Types

This section is empty.

Jump to

Keyboard shortcuts

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