Hello guys! I am using graphcool in my project, I ...
# prisma-whats-new
v
Hello guys! I am using graphcool in my project, I am using the simple endpoint wanted to know if I can mix another endpoint like the subscriptions
n
@vacom what do you mean? Do you want to connect to two different Graphcool projects?
v
I'm using the simple endpoint to make queries and mutations, so I just needed to use the subscriptions endpoint to be able to create a chat-like functionality. I am new to graphql so I see there are two endpoints for the simple and for the subscriptions and wanted to know if it is necessary to mix the two or if it is possible.
n
Ah I see! Yes, communicating with the subscriptions endpoint requires a different client, because websockets is used as the transport layer. Here's a tutorial on how to make it work: https://demo.graph.cool/worldchat/
v
Yes I have seen this demo, I want to know if I can integrate with my current project, because I already use the simple endpoint
So to summarize to do this i had to have a separate client
n
Yes. You need to use a client that is able to communicate using websockets. https://github.com/apollographql/subscriptions-transport-ws for example
That's what is used in our tutorial
v
Ah ok, I realize, thanks for the help!
I'll check
n
Awesome, let me know if you need further help 🙂