websocket/websocket_utils library
Enums
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
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