frontier-knowledge

Integrate Frontier long-connection gateway SDK for Go message push and receive.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/yuezhen-huang/my-bytedance-skillhub --skill frontier-knowledge-yuezhen-huang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontier-knowledge
Source: https://github.com/yuezhen-huang/my-bytedance-skillhub/tree/main/frontier-knowledge
Command: npx skills add https://github.com/yuezhen-huang/my-bytedance-skillhub --skill frontier-knowledge-yuezhen-huang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Go backend developers need to integrate ByteDance's Frontier long-connection gateway to receive upstream client messages and push downstream messages, but the SDK interfaces, platform configuration, and conditional push rules are scattered across multiple documents. ## Core Features & Use Cases - SDK Integration Guidance: Covers installing code.byted.org/frontier/server-sdk-go, implementing the FrontierCallback interface, and handling upstream messages like SendMessage, Auth, SendEvent, and ACKMessage. - Downstream Push Interfaces: Explains Push, PushV2, BatchPush, GroupPush, BroadcastPush, and their async variants, plus group management via GroupControlAsync. - Conditional Push & Platform Setup: Details building filter expressions with the SDK builder, error codes INVALID_CONN_FILTER (8000) and CONN_FILTERED (8001), and instance configuration such as dynamic acceleration, IPv6, and QUIC. - Use Case: A backend engineer building a notification service uses this Skill to implement the callback interface, configure a Frontier instance, and push targeted messages to devices filtered by platform and client version. ## Quick Start Use the frontier-knowledge skill to show me how to implement the FrontierCallback interface and push a message to devices using the Frontier Go SDK.

Frequently Asked Questions about frontier-knowledge

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate the Frontier server SDK in a Go service?

Install the SDK with go get code.byted.org/frontier/server-sdk-go, then implement the FrontierCallback interface to handle upstream messages. Go version 1.17 or higher is required, and you must create a Frontier instance on the platform first.

How to push messages to devices using Frontier Go SDK?

Use Push or PushAsync for single-app multi-device delivery, PushV2 for cross-app pushes, and BatchPush, GroupPush, or BroadcastPush for larger fan-out. Async variants return immediately and notify results through a callback function.

What Go version does the Frontier server SDK require?

The Frontier server SDK requires Go 1.17 or higher. It is currently only available for Go, distributed via the code.byted.org/frontier/server-sdk-go repository.

Why does Frontier conditional push return error 8000 or 8001?

Error 8000 (INVALID_CONN_FILTER) means the filter expression has a syntax error and failed parsing. Error 8001 (CONN_FILTERED) means connections did not match the conditions and were filtered out. Use the SDK's filter builder to construct valid expressions.

Which Frontier callback methods can be left as empty implementations?

PullMessages and Upstream are deprecated and should be kept as empty implementations. Auth is only needed when the app enables custom authentication, and ACKMessage is only required when message receipt is enabled in routing configuration.