Simple websocket server library
handler := func(msg []byte) []byte {
return msg
}
config := websocketree.WebSocketServerConfig{
OnMessageHandler: handler,
}
wsEchoServer := websocketree.NewWebSocketServer("127.0.0.1:9000")
wsEchoServer.Config(config)
wsEchoServer.Run()