Skip to content

Instantly share code, notes, and snippets.

@nparsons08 nparsons08/11.js Secret
Created May 28, 2019

What would you like to do?
// src/App.vue
<section class="uk-section">
<div class="uk-container uk-container-small">
<div class="uk-flex uk-flex-center">
<div class="uk-width-large uk-margin-large-top">
<template v-if="hasJoinedChat">
<!-- chats and chat form will be here -->
<template v-else>
<!-- login form will be here -->
import axios from "axios";
import { StreamChat } from "stream-chat";
export default {
name: "app",
data() {
return {
hasJoinedChat: false,
token: '',
username: "",
user: '',
channel: "",
client: "",
messages: [],
newMessage: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.