Skip to content

About

WebSocket codelab for HarmonyOS demonstrating connection states, bidirectional messages and real-time communication debugging.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Note: To access all shared projects, get information about environment setup, and view other guides, please visit Explore-In-HMOS-Wearable Index.

How To Use Web Socket

The WebSocketCodelab page provides a simple environment to test and explore WebSocket functionality. It allows developers to simulate real-time communication between the client and server, send and receive messages, and observe connection states.

Preview

Use Cases

This module is ideal for verifying WebSocket integration, debugging message flow, and understanding how live data streams can be managed within HarmonyOS applications.

Tech Stack

  • Languages: ArkTS, Typescript
  • Frameworks: HarmonyOS SDK 5.1.0(18)
  • Tools: DevEco Studio Vers 5.1.0.842
  • Libraries: @kit.BasicServicesKit, @kit.NetworkKit

Directory Structure

|---entryability
| |---EntryAbility.ets
|---entrybackupability
| |---EntryBackupAbility.ets  
|---pages
| |---Index.ets
|---services
| |---WebSocketService.ets

Constraints and Restrictions

Supported Devices

  • Huawei Watch 5

LICENSE

WebSocketCodelab is distributed under the terms of the MIT License. See the LICENSE for more information.

About

WebSocket codelab for HarmonyOS demonstrating connection states, bidirectional messages and real-time communication debugging.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages