Тёмный
No video :(

How To Build A Chat And Data Feed With WebSockets In Golang? 

Anthony GG
Подписаться 61 тыс.
Просмотров 47 тыс.
50% 1

► Join my Discord community for free education 👉 / discord
► Become a Patreon for more exclusive content 👉 / anthonygg_
► Buy my a coffee 👉 donate.stripe.com/aEU2a6ayH2u...
► Follow me on Twitter 👉 / anthdm
► Follow me on GitHub 👉 github.com/anthdm
In this Golang tutorial, I'm going to teach you how to build a simple chat application and data feed by building our own custom WebSockets server in Golang.
#golang

Опубликовано:

 

1 дек 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 78   
@anthonygg_
@anthonygg_ Год назад
► Join my Discord community for free education 👉 discord.com/invite/bDy8t4b3Rz ► Become a Patreon for exclusive tutorials👉 www.patreon.com/anthonygg_ ► Buy me a coffee 👉 donate.stripe.com/aEU2a6ayH2uCa3u4gg Thanks for watching
@Browsinghard
@Browsinghard 5 месяцев назад
Love that you go in showing the concepts without a bunch of libraries. Keep it simple and then abstract later if needed!
@Chips4Real1
@Chips4Real1 Год назад
this channel is hidden gold
@doriangauron4109
@doriangauron4109 Год назад
For real
@mynameisname6162
@mynameisname6162 10 месяцев назад
Hidden? What do you mean, I found it.
@manofqwerty
@manofqwerty Год назад
I have never looked into sockets and always thought they would be really complicated - thanks for this!
@nefrace
@nefrace Год назад
You've just single handedly motivated me to learn Golang more than I usually did. This series of tutorials are awesome and I really appreciate this simplicity and minimalism of using standard libraries as much as possible.
@anthonygg_
@anthonygg_ Год назад
Happy I could motivate you 🎉
@viral-vector
@viral-vector 5 месяцев назад
😅😅😅lllleere2le
@VitaminessBlues
@VitaminessBlues Год назад
Like your style! Speed of speech and simplicity of explanation make it lit! Awesome!
@dranon0o
@dranon0o Год назад
One thing I love about your videos is that you're going right to the point
@anthonygg_
@anthonygg_ Год назад
Life is short. No time to waste. Margaritas are waiting.
@matthewthomas7645
@matthewthomas7645 Год назад
All great videos and not just that your a very funny chap, which makes the videos more relatible then someone just saying do this and that. Keep it up!
@IkraamDev
@IkraamDev Год назад
This channel is a gold mine.
@sovrinfo
@sovrinfo Год назад
Great video. Big Thanks!
@ribarmilos
@ribarmilos 11 месяцев назад
You have a new subscriber. Thanks Anthony!
@lebonbauma4167
@lebonbauma4167 Год назад
Amazing Stuff, Let's Go😎
@gadgetboyplaysmc
@gadgetboyplaysmc 9 месяцев назад
I have subscribed. You make it look easy. I have no idea how it works because I come from TypeScript. The function syntax sort of is a little new to me. The map, create whatever is also all new to me. But will be studying this code. Thanks for this. Hope you make more useful content! Thanks!
@jacobusburger
@jacobusburger Год назад
I don’t know Go but I don’t need to. I learned so much from this video, thank you!
@puttenicole
@puttenicole Год назад
Good stuff!
@sweetphilly2
@sweetphilly2 Год назад
Great tutorial. A bit fast for my liking but it gave me good insights. Would've like to see a thread-safe implementation of the connection map, but I'll research that on my own
@LeetCodeUzbekistan
@LeetCodeUzbekistan Месяц назад
Bro you doing great
@dtuckrez
@dtuckrez 11 месяцев назад
So helpful, thank you. 10/10
@anthonygg_
@anthonygg_ 11 месяцев назад
Ty ❤️
@celsopatiri2846
@celsopatiri2846 10 месяцев назад
Awesome stuff
@crisgomez3282
@crisgomez3282 Год назад
oh thank you very much for making this tutorial, I had been looking for a good one, and you explain it quite well, and the best thing taught by Jhony sins
@anthonygg_
@anthonygg_ Год назад
Im also a fireman, plumber, and police office. Hide your girls.
@zhiweizhang-ih8zv
@zhiweizhang-ih8zv Год назад
thanks for the sharing
@90n1n74
@90n1n74 Год назад
Fantastic
@tpotjj2979
@tpotjj2979 Год назад
Netflix for Software Developers, proven content creator!
@raspberrysans5880
@raspberrysans5880 11 месяцев назад
but REALLY you SHOULD get the Nobel Simplification Prize bc you explained so well! Thank you, sir :)
@I_SEE_RED
@I_SEE_RED 5 месяцев назад
Thank you Anthony
@anthonygg_
@anthonygg_ 5 месяцев назад
Thank you for being here
@kirindev
@kirindev 2 месяца назад
thank you.
@holgerm420
@holgerm420 Год назад
appreciate the zoom
@yirgacc3931
@yirgacc3931 Год назад
very awesome tutorial GG, but i may have some problems with the websocket Write() method. Since I do it step by step with your video(just SAME as your code), i can't figure out that why the server can't write to the browser, no matter the first /ws or the later /orderbookfeed, it turns out the console don't print the message from the server after setting up the onmessage method, what's wrong?🥺
@sorooshmoghimi5494
@sorooshmoghimi5494 11 месяцев назад
awesome
@Cryoxia
@Cryoxia Год назад
Could anyone tell me where you get info on the errors returned by library methods? In the video, he talks about Conn.Write returning EOF, but I can't seem to find the info on the golang site
@Tomas-te8wq
@Tomas-te8wq 3 месяца назад
respect
@michelemendel
@michelemendel Год назад
Again, very nice. Could the actor model (e.g. your Hollywood library) be used with websockets, or would it be unnecessary?
@anthonygg_
@anthonygg_ Год назад
Tonights stream covers this
@gavrilenko2012
@gavrilenko2012 20 дней назад
Hello, I have a question. My server response 200, and seems all working fine, however in my browser I got 403 error... Any ideas how to fix it?
@AssyrianMuscle
@AssyrianMuscle Год назад
Brother can we get some architecture style vids? Or your opinions on them (hex, clean) or even ddd in golang? Maybe some design patterns that you think work well specifically with go?
@anthonygg_
@anthonygg_ Год назад
I will make one next week.
@AssyrianMuscle
@AssyrianMuscle Год назад
Honestly man you’re killing it, will be looking into contributing to your patreon this week!
@jsmx2673
@jsmx2673 Год назад
hello. this video is very good. how to create tcp socket chat client / server custom protocol
@alexandrecolautoneto7374
@alexandrecolautoneto7374 3 месяца назад
GG, I appriciate when you care about the blind homies. 🤓
@sumonsutrodhar1495
@sumonsutrodhar1495 Год назад
Coould you please introduce tuntap packet reception and transmission for user space programs? TIA
@TheNickeHallgren
@TheNickeHallgren Год назад
Excellent tutorial! How do I remove clients that have disconnected, as now they are still on the conns map after disconnecting and the next broadcast gives an error for use of closed network connection?
@TheNickeHallgren
@TheNickeHallgren Год назад
I answer my own question, in fuction readLoop add delete(s.conns, ws) before break in if err == io.EOF to delete disconnected clients :)
@Saphintosh
@Saphintosh 2 месяца назад
Oh yeah, a golang websockets online class with johnny sins.
@Allr3dc
@Allr3dc 9 месяцев назад
This video made me feel old 😂
@abdullahbiyik1342
@abdullahbiyik1342 Год назад
He can easily make joke about high-end industry topics, as he has full control over the topics.
@tanko.reactions176
@tanko.reactions176 Год назад
there is a subtle bug, will take you hours to find it if you dont know whats happening underneath.. basically, you are not guaranteed that your messages come unchopped! just implement a message terminator and read until you encounter a message terminator, which may require 5 reads, for example and once you have all the fragments of 1 message, you can process the message! otherwise its incomplete, probably not a big issue in a chat app, but very problematic when you are transferring structured data!
@zswang-iq3rl
@zswang-iq3rl Месяц назад
蟹蟹
@CodeOnBlocks
@CodeOnBlocks 4 месяца назад
lmao the 1337 😂
@chockablock34839
@chockablock34839 Год назад
Thanks for your videos, very useful. My only tip is to slow down with your typing, to make less typos. Slower typing will also help the viewer have some more time to understand what you are doing and take in what you saying. I know, it might be difficult to slow down if you are naturally a quick typist.
@anthonygg_
@anthonygg_ Год назад
Will try to slow down
@chockablock34839
@chockablock34839 Год назад
@@anthonygg_ Just to say, the timing of this video was perfect. I was looking into how to have an application UI system I am writing with Ebiten and Go communicate with a backend. Your work will help a lot.
@jhem
@jhem Год назад
You can't fool me Johnny Sins, you typed something else at 2:06
@arielsashcov99
@arielsashcov99 Год назад
Didn't know Johnny Sins is into coding
@anthonygg_
@anthonygg_ Год назад
Im also an astronaut, fireman, and plumber. Hide your girls everyone.
@tudorminciunescu9614
@tudorminciunescu9614 Год назад
code link ?
@randomness3231
@randomness3231 Год назад
my Holy Grail port: 81
@MarsMan2482
@MarsMan2482 Год назад
how would I connect to this server from another computer?
@brendanortiz1742
@brendanortiz1742 5 месяцев назад
your furiously fast typing + all the mistakes == me every time i know what i am actually trying to do my heart when i'm programming and just trying to do it fast af lol. When i don't know what i'm doing by heart i make 0 mistakes
@gokul1630
@gokul1630 Год назад
I was searching for silver & found gold
@anthonygg_
@anthonygg_ Год назад
Spread the word my man ❤️
@savimcgee7443
@savimcgee7443 Год назад
:8080. Definitely 8080!
@parthokr
@parthokr Год назад
ah huh you could have deleted the connection from conns on EOF
@JDJ1213
@JDJ1213 9 месяцев назад
Age, sex, location.
@liampugh4705
@liampugh4705 10 месяцев назад
Age, sex, location?
@anthonygg_
@anthonygg_ 10 месяцев назад
3458 bc, god, Valhala
@BilalJer
@BilalJer Год назад
Dafuq is heish
@PomogB
@PomogB 22 дня назад
what about Content-Security-Policy?
@angstrom1058
@angstrom1058 9 дней назад
I can't do what he's doing because of Content-Security-Policy. It happens also when I have a React app served by a Golang server, which is my core problem. In search of solutions. At least now, because of this video, I know it's a Content-Security-Policy problem. React / Chrome would just throw a 200 error and not say why. When I used the Chrome console directly, it spit out the Content-Security-Policy error. Chat GPT says for my React app, I need appropriate index.html headers. We'll see.
@irrefl1672
@irrefl1672 Год назад
I think that can be improved your current implementation does not work: i did this: err = websocket.Message.Send(ws, "gracias amigo for el mensaje!!") if err != nil { log.Printf("write error: %s", err.Error()) return }
Далее
How To Execute LUA Scripts In Golang?!
9:05
Просмотров 7 тыс.
A Practical Example How To Use Interfaces In Golang
14:42
вернуть Врискаса 📗 | WICSUR #shorts
00:54
I never thought I'd use Socket.io ever again
14:02
Просмотров 87 тыс.
Beginners Should Think Differently When Writing Golang
11:35
Mastering WebSockets With Go - An in-depth tutorial
2:24:34
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
Просмотров 879 тыс.
вернуть Врискаса 📗 | WICSUR #shorts
00:54