0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

neosでlogix その126

Last updated at Posted at 2023-05-01

概要

neosでlogixやってみる。
練習問題やってみた。

練習問題

websocketで、オウム返しを取得するオブジェクトを作成せよ。

方針

  • サーバーには、これ使う。

  • wsアドレス
    ws://lacalhost:50002/

  • 俺コード

{p} = WebSocketConnect pulse, WebsocketClient, "ws://localhost:50002", d
{p, b, c, t} = WebsocketTextMessageSender pulse, WebsocketClient, "hello world!"
{p, t} = WebsocketTextMessageReceiver WebsocketClient
{string} = write a, b

写真

2023-05-01 21.33.38.jpg

手順

  • devtooltipを装着
  • 新規->空のオブジェクトをスポーン
  • 追加コンポーネント->network->WebsocketClient
  • WebsocketClientのインターフェースを取り出す
  • logixtooltipを装着
  • ノードブラウザを表示
  • network->websocket->WebsocketConnectをスポーン
  • network->websocket->WebsocketTextMessageSenderをスポーン
  • network->websocket->WebsocketTextMessageReceiverをスポーン
  • actions->writeをスポーン
  • variables->stringをスポーン
  • インターフェースをつなぐ

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?