Can I use multiple runtime modules like Typescript and go in the same project?

Does the below code address the handling of player disconnects, such as in cases of internet disconnection or when a player closes the game?

func eventSessionEnd(ctx context.Context, logger runtime.Logger, evt *api.Event) {
	logger.Debug("process event session end: %+v", evt)
}

// noinspection GoUnusedExportedFunction
func InitModule(ctx context.Context, logger runtime.Logger, db *sql.DB, nk runtime.NakamaModule, initializer runtime.Initializer) error {
	if err := initializer.RegisterEventSessionEnd(eventSessionEnd); err != nil {
		return err
	}
	logger.Info("Go modules loaded.")
	return nil
}