b.sendMessage is not a function

CODAP Forums CODAP Help Forum b.sendMessage is not a function

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #6805 Score: 0

    When I drag the attribute in the “CODAP Data Interactive Plugins”, I get an error message “b.sendMessage is not a function”.

    Why do I get this error?

    The error occurs in the following plugins.

    .Performance Harness

    .Ants

    .Cart Weight

    .Floyd’s of Fargo

    .geiger

    .Lunar Lander

    .Markov

    .Proximity

    #6807
    Jonathan Sandoe
    Keymaster

    Hello,

    I am looking into this. I will get back to you as soon as I am able.

    Just to be clear, from what I understand, I think you are using the website, https://concord-consortium.github.io/codap-data-interactives/build/ and you are trying to click on a plugin name to open CODAP with that plugin. For example, if you click on “Ants”, you see this problem. Is that right?

    I am curious what browser you are using and whether your computer is a Windows computer, Macintosh, or Chrome book.

    Thank you,

    Jonathan Sandoe

    #6810

    Thanks for your reply.

    Yes, I am using a website called https://concord-consortium.github.io/codap-data-interactives/build/ and I am trying to open CODAP with that plugin by clicking on the plugin name.

    I am using windows.

    #6811

    We are currently working on a plugin.

    https://github.com/concord-consortium/codap/wiki/CODAP-Game-API-%28Deprecated%29

    Using the API on this site, when I open the table with the initGame command and drag the attributes, I am getting an error “b.sendMessage is not a function”.

    I asked if other plugins don’t give me this error, because I got the same error when I checked.

    #6812
    Jonathan Sandoe
    Keymaster

    Hello,

    Ah, now I understand better. Thank you for clarifying. This looks like a bug to me. I will record it and we will see if we can get it fixed. The problem is the Game API. The plugins you listed all use the Game API. The Game API has been deprecated for many years.

    If you are not too far along in writing your plugin, I would strongly recommend switching to the Data Interactive Plugin API(https://github.com/concord-consortium/codap/wiki/CODAP-Data-Interactive-Plugin-API). It is far more capable. The Game API is a one-way API. It can send data to CODAP, only. The Plugin API is bidirectional. In addition to the things you can do with the Game API, you can ask for data from CODAP and receive notifications about events.

    Again, thank you for calling our attention to this bug, and I hope it is not too late for you to switch to the Plugin API.

    Jonathan Sandoe

    #6816

    Thank you.

    I’ll see if I can recreate it with The Plugin API.

    #6817

    I recreated the plugin with The Plugin API, and the error no longer occurs.

    Thank you very much.

    #6818
    Jonathan Sandoe
    Keymaster

    I’m glad this helped. Please let us know if you encounter other problems.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.