bjoluc / jspsych-builder

A CLI utility to easily develop and package jsPsych experiments
MIT License
46 stars 12 forks source link

Troubles uploading data to jatos #38

Closed franfrutos closed 2 years ago

franfrutos commented 2 years ago

I'm a bit new to jsPsych and web development in general and I may ask a trivial question, but is it possible to use the jatos library inside the experiment file?

The documentation seems to indicate that the only option is to use return at the end of the function containing the experiment to connect with jatos server, but it would be nice to know if it is possible to load the jatos library to handle session related issues by "hand".

franfrutos commented 2 years ago

I have just discovered that the jatos library can be accessed if the studio is running on the jatos server.

wdhub commented 6 months ago

I have just discovered that the jatos library can be accessed if the studio is running on the jatos server.

That's nice! how did you access the jatos library in the code exactly?

bjoluc commented 6 months ago

Simply jatos should do – it's a global variable in any experiment run by JATOS :slightly_smiling_face:

franfrutos commented 3 months ago

I have just discovered that the jatos library can be accessed if the studio is running on the jatos server.

That's nice! how did you access the jatos library in the code exactly?

Hey! Sorry for the delayed response. here you can find a repo were I access the JATOS library.