diff --git a/ws/public.go b/ws/public.go index ad39882..ec897fa 100644 --- a/ws/public.go +++ b/ws/public.go @@ -14,6 +14,12 @@ func CreateServer(host string, port uint16) *Server{ inst.prt = port + inst.cli = make([]*Client, 0) + + inst.def = nil + + inst.ctl = make([]*Controller, 0) + return inst } \ No newline at end of file