General questions

Answered

Raw Content is not working in Websocket Architecture

Whenever I send the message to websocket with following object :
{ type: "newContentPart", contentType: "Raw Content" } 

It gives me the following error in the mesage: 
Invalid value for field contentType, Raw Content is not of type ContentType.
But "Raw Content" is working fine in the Rest Architecture. 


Best Answer

Hi Daoud!


Thank you for your question.


You are right , as for now the "Raw Content" type is not supported by the Web Sockets mode.

As indicated in the documentation , as for now the REST API performs the following types of recognition: Text, Math, Diagram or Raw Content.

whereas the WebSockets supports only TEXT or MATH.


Best regards,


Gwenaëlle

1 Comment

Answer

Hi Daoud!


Thank you for your question.


You are right , as for now the "Raw Content" type is not supported by the Web Sockets mode.

As indicated in the documentation , as for now the REST API performs the following types of recognition: Text, Math, Diagram or Raw Content.

whereas the WebSockets supports only TEXT or MATH.


Best regards,


Gwenaëlle