~/talk

Creating a basic chat app

Talkat GopherCon UK 2021 · 2021-10-25..10-27· [go]
name:Tom Camp
links:none on file
slides:none on file

Builds a terminal chat using Go and the Ably pub/sub broker, authenticating with an API key/token, attaching to a topic named "chat", publishing lines and subscribing to receive others' messages. Adds presence (enter/leave events) and paginated history retrieval; the demo exchanges live messages between two clients and leaves explicit presence on exit. Claims guaranteed delivery and shows the app fits in about 82 lines of code while using real-time connections (websockets protocol family) rather than polling.

AI-written summary · about

  1. 0:00Intro
  2. 2:26REST: Request - Response Method
  3. 5:34Long Polling Method
  4. 7:20Realtime Subscription
  5. 15:30Connecting to a Pub/Sub Broker
  6. 22:05Listening for enter/leave events
  7. 25:59Checking History of chat
  8. 27:56Check out the code!
  9. 29:12Let's play a game!
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.