1 Star 2 Fork 0

gqlengine / chatbox

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 707 Bytes
一键复制 编辑 原始数据 按行查看 历史
Kevin Chen 提交于 2020-02-11 09:23 . update README.md

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

Go
1
https://gitee.com/gqlengine/chatbox.git
git@gitee.com:gqlengine/chatbox.git
gqlengine
chatbox
chatbox
master

搜索帮助