chatengine-io / react-chat-engine

React component for a cheap and easy chat API
138 stars 35 forks source link

input throttling #156

Closed moonkorea00 closed 1 year ago

moonkorea00 commented 1 year ago

Hey Adam,

I'm getting a 429 status code whenever i update the input field in the chat feed component.

the request details are as below : Request URL : https://api.chatengine.io/chats/139361/typing/ Response message : detail: "Request was throttled. Expected available in 1 second."

Is this an intentional feature or is it only expected on the free tier?

Multiple space bar keypresses dont work as well.

ezgif com-gif-maker (2)

m-grig commented 1 year ago

Also running into this issue. And the first space bar press appears to give no input. It always requires two spacebar presses to add a space character.

pint-drinker commented 1 year ago

yes i am also seeing this as well. The space bar presses is the major issue for me. I may resort to a custom new massage form renderer in the interim. Here is a video demoing the space bar issues: ezgif com-video-to-gif

Perhaps it has something to do with this line of code? where things are getting trimmed: https://github.com/chatengine-io/react-chat-engine/blob/master/src/components/ChatEngine/ChatFeed/NewMessageForm/index.js#L39

alamorre commented 1 year ago

Input throttling is not an issue. It just limits the number of times you tell the server you changed the input field.

Again, do not worry when you see this response 👍

pint-drinker commented 1 year ago

i'll open a separate issue for the spacebar input problem

moonkorea00 commented 1 year ago

Input throttling is not an issue. It just limits the number of times you tell the server you changed the input field.

Again, do not worry when you see this response 👍

I see, but is the issue regarding the spacebar intentional as well?

cheers.