Back to Gqlgen

Chat App

_examples/chat/readme.md

0.17.90881 B
Original Source

Chat App

Example app using subscriptions to build a chat room.

Server

bash
go run ./server/server.go

Client

The react app uses two different implementation for the websocket link

First you need to install the dependencies

bash
npm install

Then to run the app with the apollo-link-ws implementation do

bash
npm run start

or to run the app with the graphql-ws implementation (and the newer graphql-transport-ws protocol) do

bash
npm run start:graphql-transport-ws

or to run the app with the graphql-sse implementation do

bash
npm run start:graphql-sse