Add first draft script for video 21#9
Open
nateemerson wants to merge 2 commits intosynadia-io:mainfrom
Open
Conversation
codegangsta
approved these changes
Sep 13, 2024
Contributor
codegangsta
left a comment
There was a problem hiding this comment.
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 |
Contributor
There was a problem hiding this comment.
I'd consider putting this intro at the end instead of the beginning, like we went over in our call
codegangsta
reviewed
Oct 4, 2024
|
|
||
| js, err := nc.JetStream() | ||
| if err != nil { | ||
| fmt.Println(err) |
Contributor
There was a problem hiding this comment.
Make sure you log.Fatal here instead
codegangsta
reviewed
Oct 4, 2024
| "os" | ||
| "strings" | ||
|
|
||
| "github.com/nats-io/nats.go" |
Contributor
There was a problem hiding this comment.
Let's use the new jetstream api at github.com/nats-io/nats.go/jetstream
codegangsta
reviewed
Oct 4, 2024
| const messageInput = document.getElementById('message'); | ||
| const sendButton = document.getElementById('send'); | ||
|
|
||
| const socket = new WebSocket('ws://localhost:8080/ws'); |
Contributor
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.