Socket
Socket
Sign inDemoInstall

github.com/wundergraph/graphql-go-tools/examples/chat

Package Overview
Dependencies
11
Maintainers
0
Alerts
File Explorer

Install Socket

Protect your apps from supply chain attacks

Install

github.com/wundergraph/graphql-go-tools/examples/chat

    v0.0.0-20231130082843-b1b86255282e

Version published
Maintainers
0

Readme

# Chat Demo

## Getting started
1. Install go modules & npm dependencies
```shell
go mod download
npm i
```
2. Start server and start react client
```
chmod +x start-server.sh
./start-server.sh
npm run start
```

Example is forked from: [gqlgen](https://github.com/99designs/gqlgen/tree/master/example/chat)

## Example(s)
```graphql
mutation SendMessage {
  post(roomName: "#test", username: "me", text: "hello!") {
    ...MessageData
  }
}

query GetMessages {
  room(name:"#test") {
    name
    messages {
      ...MessageData
    }
  }
}

subscription LiveMessages {
  messageAdded(roomName: "#test") {
    ...MessageData
  }
}

fragment MessageData on Message{
  id
  text
  createdBy
  createdAt
}
```

FAQs

Last updated on 30 Nov 2023

Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc