# chatbox **Repository Path**: gqlengine/chatbox ## Basic Information - **Project Name**: chatbox - **Description**: gqlengine示例:聊天对话框 - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2020-02-10 - **Last Updated**: 2024-08-11 ## Categories & Tags **Categories**: webui **Tags**: None ## README # 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](assets/image-20200211092252909.png) you can also debug with Playground by subscription the **chatMessage** ```graphql subscription { chatMessage(sender: "bob") { sentTime sender ... on TextMessage { text } ... on ImageMessage { image } } } ``` ![image-20200210223906787](assets/image-20200210223906787.png)