mirror of
https://github.com/Quad4-Software/Reticulum-Go
synced 2026-08-29 23:48:44 -04:00
22 lines
526 B
Go
22 lines
526 B
Go
|
|
// SPDX-License-Identifier: Apache-2.0
|
||
|
|
// Copyright (c) 2024-2026 Quad4.io
|
||
|
|
|
||
|
|
//go:build tinygo
|
||
|
|
|
||
|
|
package sharedinstance
|
||
|
|
|
||
|
|
import (
|
||
|
|
"quad4/reticulum-go/pkg/common"
|
||
|
|
"quad4/reticulum-go/pkg/transport"
|
||
|
|
)
|
||
|
|
|
||
|
|
// Attach is a no-op on TinyGo: local shared-instance sockets are not supported.
|
||
|
|
func Attach(cfg *common.ReticulumConfig, tr *transport.Transport, hooks Hooks) (*Instance, error) {
|
||
|
|
_ = tr
|
||
|
|
_ = hooks
|
||
|
|
if cfg != nil && cfg.ShareInstance {
|
||
|
|
cfg.ConnectedToSharedInstance = false
|
||
|
|
}
|
||
|
|
return &Instance{Mode: ModeDisabled}, nil
|
||
|
|
}
|