Skip to content

gqlengine/chatbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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:https://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

Watchers

Forks

Releases

No releases published

Packages

No packages published