8000 Add first draft script for video 21 by nateemerson · Pull Request #9 · synadia-io/rethink_connectivity · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nateemerson
Copy link

No description provided.

Copy link
Contributor
@codegangsta codegangsta left a 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
Copy link
Contributor

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)
Copy link
Contributor

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"
Copy link
Contributor

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');
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0