JSON parsing error: Unexpected token R in JSON at position 0
I presume for my own app, I should be able to export the codegen generated js interface file and it should work?
have you selected JSON message on server-side?
RO107 signature means that Bin Message is used by server-side
Doh ! What an idiot I am! That would be a no,
Are there any useful things I should know, like a React sample or a nice way to do things like Fire creating the DataAccess class or limitations of the current JS DA? I’m just reading the docs of course.
I can suggest to look for
React word on this forum.
Some topics can be useful for you.
for example, this topic contains a sample
Thanks, yes I’ve already had a quick look. I’m just getting a feel for it at the moment.
I wonder if you could take a look at this for me? I thought it would be nice to add a react client for the http chat sample of yours, so I have done this but notice that I am missing something as it doesn’t use the same session each time it sends a message, so the user is unknown each time, and this is different to the existing js sample you’ve made which works fine and I can’t work out what I’ve not got right here.
RO React Chat Sample.zip (427.3 KB)
something is wrong with your testcase.
ChatScreen method as
const message = new RemObjects.SDK.JSONMessage(); // eslint-disable-line
alert(message.getClientID()); // <<<<<<<< added
and see that this method is called twice at each call. as a result, your message is initialized with new guid every time