socket

package
v0.0.0-...-aa4253a Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 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

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

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