MWSE/sdk/version.js

9 lines
456 B
JavaScript

// SDK wire protocol version — must match internal/protocol/version.go WSTSVersion.
// Both sides refuse to operate when versions differ.
export const SDK_VERSION = '1.0.0';
// Codec identifiers (see codec.js). The server advertises supported codecs in the
// wsts/hello signal; the client picks the highest it supports.
export const CODEC_JSON = 0; // JSON text frames — current
export const CODEC_BINARY = 1; // Binary frames — planned (#42)