Go 1.11 has reached end of support
and will be deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Go 1.11
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Go
1.11 applications will continue to run and receive traffic after their
deprecation date. We
recommend that you migrate to the latest supported version of Go.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation pertains to the server-side implementation of App Engine's Channel API, specifically within the \u003ccode\u003echannel\u003c/code\u003e package.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreate\u003c/code\u003e function generates a unique token for a given client ID, which is then used by the client to establish a channel.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSend\u003c/code\u003e function allows sending text-based messages to a specified client over their established channel.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSendJSON\u003c/code\u003e function provides a way to send JSON-encoded data over a channel to a specified client.\u003c/p\u003e\n"],["\u003cp\u003eThe Channel API feature has been deprecated and will be removed, as outlined in the Channel API Turndown document.\u003c/p\u003e\n"]]],[],null,["# Package google.golang.org/appengine/channel (v1.6.8)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.8 (latest)](/appengine/docs/legacy/standard/go111/reference/latest/channel)\n- [1.6.7](/appengine/docs/legacy/standard/go111/reference/1.6.7/channel) \n**Note:** To get more information about this package, such as access to older versions, view [this package on pkg.go.dev](https://pkg.go.dev/google.golang.org/appengine/channel). \n\u003cbr /\u003e\n\nPackage channel implements the server side of App Engine's Channel API.\n\nCreate creates a new channel associated with the given clientID,\nwhich must be unique to the client that will use the returned token. \n\n```maple\ntoken, err := channel.Create(c, \"player1\")\nif err != nil {\n // handle error\n}\n// return token to the client in an HTTP response\n```\n\n\u003cbr /\u003e\n\nSend sends a message to the client over the channel identified by clientID. \n\n```text\nchannel.Send(c, \"player1\", \"Game over!\")\n```\n\n\u003cbr /\u003e\n\nDeprecated: The Channel API feature has been deprecated and is going to be removed. See the Channel API Turndown document for details and timetable.\n\n\u003chttps://cloud.google.com/appengine/docs/deprecations/channel\u003e \n\nFunctions\n---------\n\n### func Create\n(deprecated)\n\n func Create(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, clientID https://pkg.go.dev/builtin#string) (token https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error)\n\nCreate creates a channel and returns a token for use by the client.\nThe clientID is an application-provided string used to identify the client. \n\n### func Send\n(deprecated)\n\n func Send(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, clientID, message https://pkg.go.dev/builtin#string) https://pkg.go.dev/builtin#error\n\nSend sends a message on the channel associated with clientID. \n\n### func SendJSON\n(deprecated)\n\n func SendJSON(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, clientID https://pkg.go.dev/builtin#string, value interface{}) https://pkg.go.dev/builtin#error\n\nSendJSON is a helper function that sends a JSON-encoded value\non the channel associated with clientID."]]