Interactive online experiments #779
-
Hi, Is it possible to design interactive online experiments (where participants interact with other participants) with jsPsych? Is there the possibility to have a chat system that participants can use to communicate? And is it also possible to design interactive online experiments where the participant plays with a virtual partner (the computer)? Thank you in advance for your answer! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yep, those are all possible via Javascript, jsPsych is just a thin layer over the programming language. For chat applications, look into the Websocket API or the long polling technique. You will need to write a corresponding server (if it's person to person communication). It is also possible to design interactive experiments. You would need to write all the logic for the virtual partner. There are certain Javascript libraries like Phaser.js to help with that. Let me know if you have any further questions! ~ Vijay |
Beta Was this translation helpful? Give feedback.
-
Hi, Thank you very much for your answer! I will come back if I have further questions. Best, |
Beta Was this translation helpful? Give feedback.
Yep, those are all possible via Javascript, jsPsych is just a thin layer over the programming language.
For chat applications, look into the Websocket API or the long polling technique. You will need to write a corresponding server (if it's person to person communication).
It is also possible to design interactive experiments. You would need to write all the logic for the virtual partner. There are certain Javascript libraries like Phaser.js to help with that.
Let me know if you have any further questions!
~ Vijay