websocket/websocket_utils library

Constants

deviceTypeAndroid → const int
deviceTypeIos → const int
deviceTypePC → const int
wsMsgConnected → const int
wsMsgMediaUpdate → const int
wsMsgStartStreaming → const int
wsMsgStopStreaming → const int
wsPortControl → const int
wsPortFlyScreen → const int
wsPortStream → const int
wsPortVRServer → const int

Properties

authKeys Map<String, String>
{apiKey: apiSecret}
getter/setter pair

Functions

checkAuth(HttpRequest request) bool
createAuthHeaders() Map<String, String>
decBase64(String? enc) String?
encBase64(String str) String
generateRandomString(int length) String
getPort(WSConnectionType type) int
headerValue(HttpRequest request, String name) String?
initResponseHeaders(HttpRequest request, String mimeType, int length) → void
sendResponseFile(HttpRequest request, File? file, {String? mimeType}) → void
armv7a访问4g以上大文件会出错
setAllowOriginHeader(HttpRequest request) → void
toMd5(String data) String