Skip to content
gqlenginePublic

About

chatbox example by gqlengine

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Chatbox by gqlengine

chatbox demostrates a message box for multiple users (each page as a user), it's an example shows how powerful by GraphQL subscription which fully supported by GQLEngine.

get the demo:

go get github.com/gqlengine/chatbox@master

run and open at: http://localhost:9996/

image-20200211092252909

you can also debug with Playground by subscription the chatMessage

subscription {
  chatMessage(sender: "bob") {
    sentTime
    sender
    ... on TextMessage {
        text
    }
    ... on ImageMessage {
        image
    }
  }
}

image-20200210223906787

About

chatbox example by gqlengine

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages