func (r *Room) Init() {
	r.app.GroupCreate(context.Background(), "room")
}
Init runs on service initialization
package services
import (
	"context"
	"fmt"
	"time"
	"github.com/google/uuid"
	"github.com/topfreegames/pitaya/v2"
	"github.com/topfreegames/pitaya/v2/component"
	"github.com/topfreegames/pitaya/v2/examples/demo/cluster_protobuf/protos"
	"github.com/topfreegames/pitaya/v2/timer"
)
type (
	Room struct {
		component.Base
		timer *timer.Timer
		app   pitaya.Pitaya
		Stats *Stats
	}
	Stats struct {
		outboundBytes int
		inboundBytes  int
	}
)
func (Stats *Stats) Outbound(ctx context.Context, in []byte) ([]byte, error) {
	Stats.outboundBytes += len(in)
	return in, nil
}
func (Stats *Stats) Inbound(ctx context.Context, in []byte) ([]byte, error) {
	Stats.inboundBytes += len(in)
	return in, nil
}
func NewRoom(app pitaya.Pitaya) *Room {
	return &Room{
		app:   app,
		Stats: &Stats{},
	}
}