|
|
|
@ -3,6 +3,7 @@ package nhooyrioWebsocketAddons
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
"encoding/json"
|
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
|
|
"nhooyr.io/websocket"
|
|
|
|
|
"nhooyr.io/websocket/wsjson"
|
|
|
|
@ -108,6 +109,7 @@ func (r *GosmContainer) WsCommunicator(method string, ctx context.Context, conn
|
|
|
|
|
return err, websocket.MessageText
|
|
|
|
|
case method == "receive" && len(dosth) == 1:
|
|
|
|
|
err, receiveval := WsjsonReceive(ctx, conn, dosth[0])
|
|
|
|
|
fmt.Print("ICH BIN HIER UND HIER GEHT WAS SCHIEF")
|
|
|
|
|
//*r = receiveval.(GosmContainer)
|
|
|
|
|
return err, websocket.MessageText
|
|
|
|
|
default:
|
|
|
|
|