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 document outlines the functionality of the App Engine's Channel API package, specifically versions 1.6.7 and 1.6.8.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003echannel\u003c/code\u003e package allows for the creation of channels with \u003ccode\u003eCreate\u003c/code\u003e, enabling the sending of messages to clients via a unique client ID.\u003c/p\u003e\n"],["\u003cp\u003eThe package includes \u003ccode\u003eSend\u003c/code\u003e to send a string message to a specific client, and \u003ccode\u003eSendJSON\u003c/code\u003e to send a JSON-encoded value to a specific client.\u003c/p\u003e\n"],["\u003cp\u003eThe Channel API has been deprecated and will be removed, as detailed in the Channel API Turndown document.\u003c/p\u003e\n"],["\u003cp\u003eThere is a link provided to access more information, such as older versions, about this package on pkg.go.dev.\u003c/p\u003e\n"]]],[],null,["# Package google.golang.org/appengine/channel (v1.6.7)\n\nVersion 1.6.7keyboard_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/golang.org/x/net/context.https://pkg.go.dev/golang.org/x/net/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/golang.org/x/net/context.https://pkg.go.dev/golang.org/x/net/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/golang.org/x/net/context.https://pkg.go.dev/golang.org/x/net/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."]]