Websocket in Go 🔹 Golang: gorilla/websocket Tutorial 🔹 German Tutorial

preview_player
Показать описание
🔻 Aufklappen :^) 🔻

ᚯ Repository zum Tutorial:

ᚯ gorilla/websocket Docs:

ᚯ Infos und Docs über das Thema Websockets:

Viel Spaß! ㋡

▬▬▬▬▬▬▬▬▬ ❌ LINKS ❌ ▬▬▬▬▬▬▬▬▬

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

© 2018 zekro
Рекомендации по теме
Комментарии
Автор

Hey. Kannst du mir bitte diese Funktion etwas genauer erklären?

func (ws *WebSocket) On(eventName string, action EventHandler) *WebSocket {
ws.Events[eventName] = action
return ws
}

Wie funktioniert die genau? Z.B. mit dem Aufruf:

ws.On("message", func(e *Event) {
log.Printf("Message received: %s", e.Data.(string))
})

Sohneg
Автор

Hey zekro,
ich habe da eine Frage, wird vllt bald eine neuere Version von Node.js Tutorial kommen....?
Ich würde mich auf eine Antwort freuen.
~LG TuyenAnhHD

TuyenAnh_
Автор

Klasse Video hilft mir wirklich sehr weiter!:)

arthurh
Автор

Hi,
ich wollte fragen ob noch weiteres zu Node.js ( => Discord.js ) kommt. Wäre nice😀

subroowka
Автор

Don't understand German, but who cares! :) Just did laggy-working Kafka consumer inside of handler and feeding Kafka messages into web-socket. Would like to see some in depth tutorial. Using kafka-confluent-go package. And it looks like this example works only for one WS session. You cant broadcast message to all sessions (like public chat).

Oswee
Автор

Would be great if you could show json.Unmarshal or jsonpb.Unmarshal for received event.

Oswee
Автор

Kannst du mal bitte ein Tutorial zu dem Go Discord Wrapper machen?

paul
Автор

Da sind aber viele Inder auf dem Server :lul:

RMCProductions
welcome to shbcf.ru