16 lines
682 B
Go
16 lines
682 B
Go
package protocol
|
|
|
|
// WSTSVersion is the wire protocol version. The SDK checks this against its own
|
|
// version constant (sdk/version.js) on every connection: if they differ the SDK
|
|
// refuses to proceed. Bump both together when making a breaking wire change.
|
|
//
|
|
// Current versioning scheme:
|
|
// "1.x.x" JSON text frames (codec id 0) — v0.1.0 → current
|
|
// "2.x.x" Binary frames (codec id 1) — planned, issue #42
|
|
const WSTSVersion = "1.0.0"
|
|
|
|
// WSTSCodecJSON is the codec identifier for the current JSON text framing.
|
|
// The server lists supported codecs in the wsts/hello signal so the client can
|
|
// negotiate the best mode it understands.
|
|
const WSTSCodecJSON = 0
|