Giter VIP home page Giter VIP logo

Comments (2)

qiemem avatar qiemem commented on June 2, 2024

Current protocol examples

  • Client chat message
{"agentType":"chatter","cmd":"hi"}
  • Server chat broadcast
{
  "kind":"chatter",
  "context":"chatter",
  "user":"Bryan",
  "message":"hi",
  "members":["Bryan","BizzleBot"]
}
  • Client observer command message
{"agentType":"observer","cmd":"create-turtles 5"}
  • Server observer command echo (so the command is displayed in the chat window)
{
  "kind":"command",
  "context":"observer",
  "user":"Bryan",
  "message":"create-turtles 5",
  "members":["Bryan","BizzleBot"]
}
  • Server observer command response (not the view update, just the resopnse to the message)
{
  "kind":"response",
  "context":"netlogo",
  "user":"observer",
  "message":"",
  "members":["Bryan","BizzleBot"]
}
  • Client observer reporter message
{"agentType":"observer","cmd":"show count turtles"}
  • Server observer reporter echo (so the reporter is displayed in the chat window)
{
  "kind":"command",
  "context":"observer",
  "user":"Bryan",
  "message":"show count turtles",
  "members":["Bryan","BizzleBot"]
}
  • Server observer reporter response
{
  "kind":"response",
  "context":"netlogo",
  "user":"observer",
  "message":"observer: 5",
  "members":["Bryan","BizzleBot"]
}

Notes:

  • "members" is the list of users to display the message to
  • In server messages, "kind" will either be the agent type the command or reporter is for, or it will indicate it's a chat message
  • "agenttype" serves the same role as "kind" in client messages
  • The protocol is very chat oriented right now.

from galapagos.

TheBizzle avatar TheBizzle commented on June 2, 2024

This issue was moved to NetLogo/Teletortoise#5

from galapagos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.