Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Okay so I'm making a project that let's a user query an api using their own input.
I want to create a webhook or websocket system that when a user creates an api query a new websocket connection is made and listens for matches in the query parameters of the api query and when a match is found the webhook or socket sends a message to the server with the matching information.

Is this possible? Is so how should I go about doing it and how could I encapsulate an api query into a websocket connection. I'm just looking for a nudge in the right direction.

What I have tried:

Using AI and Google. I've managed to get some what of an idea what I have no idea where to start in embedding the api query into the websocket connection so that it listens for matches in the api's dataset.
Posted
Comments
Dave Kreskowiak 25-Nov-23 12:04pm    
Your question makes no sense. The server should be providing the API clients call. As for the websockets, there server normally keeps an array of connections to clients the server can use to send out-of-band data to the clients. In this case, out-of-band refers to any data the server has to send to clients without the clients requesting it over HTTP.
daniel wakeley 17-Jan-24 12:02pm    
Hey sorry I was really confused. I can see that it doesn't make any sense. Thank you for your time and patience though!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900