If you are not sure if the website you would like to visit is secure, you can verify it here. Enter the website address of the page and see parts of its content and the thumbnail images on this site. None (if any) dangerous scripts on the referenced page will be executed. Additionally, if the selected site contains subpages, you can verify it (review) in batches containing 5 pages.
favicon.ico: nitric.io/docs/reference/go/websocket/websocket-on - Go: Websocket.On() | Nitric Do.

site address: nitric.io/docs/reference/go/websocket/websocket-on redirected to: nitric.io/docs/reference/go/websocket/websocket-on

site title: Go: Websocket.On() Nitric Documentation

Our opinion (on Tuesday 30 June 2026 11:34:36 UTC):

GREEN status (no comments) - no comments
After content analysis of this website we propose the following hashtags:



Meta tags:
description=Reference for Nitric s Go library - Register a handler for connections, disconnections, or messages for the websocket.;

Headings (most frequently used words):

websocket, go, on, get, started, build, deploy, languages, reference, misc, parameters, examples, register, handler, for, message, events, manage, connections,

Text of the page (most frequently used words):
api (47), websockets (25), #websocket (23), ctx (20), file (20), route (20), bucket (19), secret (18), nitric (16), delete (16), sql (15), get (12), overview (12), put (11), queue (11), topic (11), job (11), connections (10), github (9), the (9), func (9), schedule (9), schedules (9), storage (9), secrets (9), key (9), value (9), stores (9), apis (9), err (8), handler (8), queues (8), topics (8), connectionid (7), for (7), batch (7), patch (7), post (7), request (6), all (6), sdk (6), version (6), this (5), return (5), message (5), context (5), send (5), keys (5), set (5), com (5), nitrictech (5), databases (5), websites (5), page (4), nil (4), todo (4), eventtype_message (4), keyvalue (4), required (4), write (4), read (4), access (4), dequeue (4), enqueue (4), subscribe (4), publish (4), submit (4), search (4), guides (3), foundations (3), examples (3), error (3), eventtype_disconnect (3), eventtype_connect (3), register (3), newwebsocket (3), copied (3), copy (3), type (3), handle (3), docs (3), custom (3), close (3), cron (3), every (3), connectionstring (3), files (3), latest (3), google (3), cloud (3), azure (3), aws (3), follow (2), support (2), contributions (2), 2026 (2), edit (2), parameters (2), run (2), connectionstream (2), registered (2), connection (2), interface (2), new (2), newkv (2), public (2), main (2), import (2), can (2), use (2), events (2), description (2), name (2), messages (2), disconnections (2), reference (2), documentation (2), start (2), with (2), service (2), getuploadurl (2), getdownloadurl (2), exists (2), resources (2), http (2), async (2), messaging (2), services (2), youtube, join, our, discord, server, inc, last, updated, jan, open, issue, have, feedback, byte, reached, end, documents, break, recv, broadcast, remove, disconnect, string, map, connect, kvstoredelete, kvstoreset, kvstoreget, allow, store, you, collection, manage, from, printf, fmt, callback, function, event, listen, websocketeventtype, eventtype, learn, about, faq, misc, containers, env, vars, other, config, preview, features, cli, dart, sqldatabase, uploadurl, downloadurl, listfiles, accessversion, newroute, newschedule, newtopic, newbucket, newsqldatabase, newsecret, newqueue, newjob, newapi, connection_string, upload_url, download_url, methods, python, node, languages, install, docker, adding, resource, types, providers, provider, extension, mappings, terraform, pulumi, deploy, hpc, build, architecture, deployment, local, development, security, infrastructure, configuration, projects, why, quick, installation, started, introduction,


Text of the page (random words):
go websocket on nitric documentation foundations guides search search docs 1 9k search search docs introduction get started installation quick start guides foundations why nitric projects overview configuration infrastructure overview services resources security local development deployment architecture overview services apis schedules websockets websites storage key value stores async messaging queues topics sql databases secrets build apis batch ai ml hpc schedules websockets websites storage key value stores sql databases async messaging secrets deploy overview pulumi overview aws google cloud azure terraform overview aws google cloud azure service mappings aws apis batch schedules websockets websites storage key value stores sql databases topics queues secrets azure apis schedules websites storage key value stores sql databases topics queues secrets google cloud apis batch schedules websites storage key value stores sql databases topics queues secrets custom overview provider extension custom providers adding resource types install with docker languages overview node js overview apis api api get api post api put api delete api patch api route api route all api route get api route post api route put api route delete api route patch batch job job handler job submit http http key value stores kv kv get kv set kv delete kv keys topics topic topic publish topic subscribe queues queue queue enqueue queue dequeue secrets secret secret put secret version secret latest secret version access storage bucket bucket on bucket file bucket files file exists file read file write file delete file getdownloadurl file getuploadurl sql sql sql connectionstring schedules schedule schedule every schedule cron websockets websocket websocket on websocket send websocket close python overview apis api api get api post api put api delete api patch api methods api all batch job job handler job submit key value stores kv kv get kv set kv delete kv keys topics topic topic publish topic subscribe queues queue queue enqueue queue dequeue secrets secret secret put secret version secret latest secret version access storage bucket bucket on bucket file bucket files file read file write file delete file download_url file upload_url sql sql sql connection_string schedules schedule websockets websocket websocket on websocket send go overview resources newapi newjob newkv newqueue newsecret newsqldatabase newbucket newtopic newschedule newwebsocket apis api get api post api put api delete api patch api newroute api route all api route get api route post api route put api route delete api route patch batch job handler job submit key value stores kv get kv set kv delete kv keys topics topic publish topic subscribe queues queue enqueue queue dequeue secrets secret put secret accessversion secret access storage bucket on bucket listfiles bucket read bucket write bucket delete bucket downloadurl bucket uploadurl sql sqldatabase connectionstring schedules schedule every schedule cron websockets websocket on websocket send websocket close dart overview apis api api all api get api post api put api delete api patch api route api route all api route get api route post api route put api route delete api route patch batch job job handler job submit key value stores kv kv get kv set kv delete kv keys topics topic topic publish topic subscribe queues queue queue enqueue queue dequeue secrets secret secret put secret version secret latest secret version access storage bucket bucket on bucket file bucket files file exists file read file write file delete file getdownloadurl file getuploadurl sql sql sql connectionstring schedules schedule schedule every schedule cron websockets websocket websocket on websocket send websocket close reference cli preview features other config env vars custom service containers misc examples faq contributions support go websocket on go websocket on this is reference documentation for the nitric go sdk to learn about websockets in nitric start with the websockets docs register a handler for connections disconnections or messages for the websocket copy copied import github com nitrictech go sdk nitric github com nitrictech go sdk nitric websockets func main ws nitric newwebsocket public ws on websockets eventtype_connect func ctx websockets ctx handle connections ws on websockets eventtype_disconnect func ctx websockets ctx handle disconnections ws on websockets eventtype_message func ctx websockets ctx handle messages nitric run parameters name eventtype required required type websocketeventtype description the type of websocket event to listen for can be eventtype_connect eventtype_disconnect or eventtype_message name handler required required type interface description the callback function to use as the handler for websocket events examples register a handler for message events copy copied ws on websockets eventtype_message func ctx websockets ctx fmt printf new message from s s n ctx request connectionid ctx request message manage websocket connections to store websocket connections you can use a nitric collection copy copied import context github com nitrictech go sdk nitric github com nitrictech go sdk nitric keyvalue github com nitrictech go sdk nitric websockets func main ws nitric newwebsocket public connections nitric newkv connections allow keyvalue kvstoreget keyvalue kvstoreset keyvalue kvstoredelete register a new connection on connect ws on websockets eventtype_connect func ctx websockets ctx error return connections set context todo ctx request connectionid map string interface connectionid ctx request connectionid remove a registered connection on disconnect ws on websockets eventtype_disconnect func ctx websockets ctx error return connections delete context todo ctx request connectionid broadcast message to all the registered websocket connections ws on websockets eventtype_message func ctx websockets ctx error connectionstream err connections keys context todo if err nil return err for connectionid err connectionstream recv if err nil break reached the end of the documents err ws send context todo connectionid byte ctx request message if err nil return err return nil nitric run edit this page on github have feedback on this page open github issue last updated on jan 5 2026 on this page parameters examples edit this page on github 2026 nitric inc contributions support foundations guides follow us on x follow us on github join our discord server youtube
Thumbnail images (randomly selected): * Images may be subject to copyright.GREEN status (no comments)

    No Images


    Verified site has: 285 subpage(s). Do you want to verify them? Verify pages:

    1-5 6-10 11-15 16-20 21-25 26-30 31-35 36-40 41-45 46-50
    51-55 56-60 61-65 66-70 71-75 76-80 81-85 86-90 91-95 96-100
    101-105 106-110 111-115 116-120 121-125 126-130 131-135 136-140 141-145 146-150
    151-155 156-160 161-165 166-170 171-175 176-180 181-185 186-190 191-195 196-200
    201-205 206-210 211-215 216-220 221-225 226-230 231-235 236-240 241-245 246-250
    251-255 256-260 261-265 266-270 271-275 276-280 281-285


    The site also has 3 references to external domain(s).

     github.com  Verify  x.com  Verify  youtube.com  Verify


    Top 50 hastags from of all verified websites.

    Supplementary Information (add-on for SEO geeks)*- See more on header.verify-www.com

    Header

    HTTP/1.0 308 Permanent Redirect
    Content-Type text/plain
    Location htt????/nitric.io/docs/reference/go/websocket/websocket-on
    Refresh 0;url=htt????/nitric.io/docs/reference/go/websocket/websocket-on
    server Vercel
    HTTP/2 200
    access-control-allow-origin *
    age 1030272
    cache-control public, max-age=0, must-revalidate
    content-disposition inline
    content-encoding gzip
    content-security-policy default-src self nitric.io *.nitric.io; connect-src self nitric.io *.nitric.io algolianet.com *.algolianet.com *.algolia.net api.hsforms.com api.github.com *.usefathom.com cdn.jsdelivr.net raw.githubusercontent.com lighter.codehike.org ; script-src self nitric.io *.nitric.io unsafe-inline usefathom.com *.usefathom.com unsafe-eval ; style-src self nitric.io *.nitric.io unsafe-inline fonts.googleapis.com data:; frame-src self nitric.io *.nitric.io www.youtube-nocookie.com; img-src self nitric.io *.nitric.io usefathom.com *.usefathom.com *.githubusercontent.com github.com data:; font-src self nitric.io *.nitric.io fonts.gstatic.com; frame-ancestors none
    content-type text/html; charset=utf-8
    date Tue, 30 Jun 2026 11:34:36 GMT
    etag W/ 40ab3add4ab268963eed4b20411de40d
    server Vercel
    strict-transport-security max-age=63072000; includeSubDomains; preload
    vary RSC, Next-Router-State-Tree, Next-Router-Prefetch
    x-frame-options SAMEORIGIN
    x-matched-path /reference/go/websocket/websocket-on
    x-robots-tag all
    x-vercel-cache HIT
    x-vercel-id fra1:fra1:fra1::f9x59-1782819275485-60d64e43e13f
    x-xss-protection 1; mode=block

    Meta Tags

    title="Go: Websocket.On() | Nitric Documentation"
    charset="utf-8"
    name="viewport" content="width=device-width, initial-scale=1"
    name="description" content="Reference for Nitric's Go library - Register a handler for connections, disconnections, or messages for the websocket."
    name="robots" content="index, follow"
    property="og:title" content="Go: Websocket.On() | Nitric Documentation"
    property="og:description" content="Reference for Nitric's Go library - Register a handler for connections, disconnections, or messages for the websocket."
    property="og:url" content="htt????/nitric.io/docs/reference/go/websocket/websocket-on"
    property="og:site_name" content="Nitric Docs"
    property="og:locale" content="en_US"
    property="og:image" content="htt????/nitric.io/docs/og?title=Websocket.On()&description=Reference%20for%20Nitric%27s%20Go%20library%20-%20Register%20a%20handler%20for%20connections%2C%20disconnections%2C%20or%20messages%20for%20the%20websocket."
    property="og:image:alt" content="Nitric Docs"
    name="twitter:card" content="summary_large_image"
    name="twitter:title" content="Go: Websocket.On() | Nitric Documentation"
    name="twitter:description" content="Reference for Nitric's Go library - Register a handler for connections, disconnections, or messages for the websocket."
    name="twitter:image" content="htt????/nitric.io/docs/og?title=Websocket.On()&description=Reference%20for%20Nitric%27s%20Go%20library%20-%20Register%20a%20handler%20for%20connections%2C%20disconnections%2C%20or%20messages%20for%20the%20websocket."
    name="twitter:image:alt" content="Nitric Docs"
    name="next-size-adjust"

    Load Info

    page size34148
    load time (s)0.772062
    redirect count1
    speed download44233
    server IP 76.76.21.21
    * all occurrences of the string "http://" have been changed to "htt???/"