- Blind mode tutorial
lichess.org
Donate

BOT Account: Stream incoming events not resolving

Since I want to build server chess bot I need to see incoming challenges. However, doing a GET request to /api/stream/event with Authorization token specified in headers, I do not get a response. The API documentation is very taciturn and I cannot deduce what I am doing wrong. I suppose that the response to this GET request should be immediate, not actually being a constant stream like stdin ...

Since I want to build server chess bot I need to see incoming challenges. However, doing a GET request to /api/stream/event with Authorization token specified in headers, I do not get a response. The API documentation is very taciturn and I cannot deduce what I am doing wrong. I suppose that the response to this GET request should be immediate, not actually being a constant stream like stdin ...

I am writing Node JS app with axios for requests but I also double checked with Postman.

I am writing Node JS app with axios for requests but I also double checked with Postman.

I suppose that the response to this GET request should be immediate, not actually being a constant stream like stdin ...

It is like a constant stream, in fact. The connection remains open and whenever there's a new event, the server will write something on the stream.

On reading a streamed HTTP response in Node.js: https://stackoverflow.com/questions/19580305/node-js-http-response-streams

> I suppose that the response to this GET request should be immediate, not actually being a constant stream like stdin ... It is like a constant stream, in fact. The connection remains open and whenever there's a new event, the server will write something on the stream. On reading a streamed HTTP response in Node.js: https://stackoverflow.com/questions/19580305/node-js-http-response-streams

Thanks a lot, I think this will actually help!

Thanks a lot, I think this will actually help!

This topic has been archived and can no longer be replied to.