-
Notifications
You must be signed in to change notification settings - Fork 19
Add first draft script for video 21 #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This script is fantastic. Really well structured and to the point. Let's turn it into a video!
Hey everyone, my name is Nate and I like NATS! I'm a software architect who's | ||
been building web applications and infrastructure for about 20 years. And I got a new job! | ||
|
||
I recently joined Synadia as a DX engineer, where I'm excited to work on our web |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd consider putting this intro at the end instead of the beginning, like we went over in our call
|
||
js, err := nc.JetStream() | ||
if err != nil { | ||
fmt.Println(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure you log.Fatal
here instead
"os" | ||
"strings" | ||
|
||
"github.com/nats-io/nats.go" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use the new jetstream api at github.com/nats-io/nats.go/jetstream
const messageInput = document.getElementById('message'); | ||
const sendButton = document.getElementById('send'); | ||
|
||
const socket = new WebSocket('ws://localhost:8080/ws'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nats.ws
import {connect} from nats.js
const conn = await connect({server: "ws://localhost:4223"})
Additionally, show the user how to configure nats for websockets:
nats-server -c nats.conf
or
nats-server --websockets ????
refer to alberto for latest web recommendation
No description provided.