Skip to main content

Server Core Utilities

Server core utilities are Node.js-specific functions designed for server-side walkerOS implementations. These utilities handle server communication, cryptographic hashing, and other backend operations.

Installation

Import server utilities from the @walkeros/server-core package:

Loading...

Server Communication

sendServer

sendServer(url: string, data?: SendDataValue, options?: SendServerOptions): Promise<SendResponse> sends HTTP requests using Node.js built-in modules (http/https).

Loading...

SendServerOptions

Loading...

SendResponse

Loading...

Cryptographic Operations

getHashServer

getHashServer(str: string, length?: number): Promise<string> generates SHA-256 hashes using Node.js crypto module.

Loading...

This function is commonly used for:

  • User Anonymization: Creating privacy-safe user identifiers
  • Fingerprinting: Generating device/session fingerprints
  • Data Deduplication: Creating consistent identifiers
  • Privacy Compliance: Hashing PII for GDPR/CCPA compliance

Usage Examples

Event Processing Pipeline

Loading...

Privacy-Safe Session Tracking

Loading...

Error Handling

Server utilities include comprehensive error handling:

Loading...

Performance Considerations

Timeout Configuration

Configure appropriate timeouts based on your use case:

Loading...

Batch Processing

For high-volume scenarios, consider batching:

Loading...

Connection Reuse

The underlying Node.js HTTP agent automatically reuses connections for better performance with multiple requests to the same host.

Security Notes

  • HTTPS Only: Use HTTPS URLs in production for encrypted transmission
  • API Keys: Store sensitive credentials in environment variables
  • Timeout Limits: Set reasonable timeouts to prevent hanging requests
  • Hash Salting: Use application-specific salts when hashing sensitive data
Loading...

Integration with Core

Server utilities work seamlessly with Core Utilities:

Loading...

For platform-agnostic utilities, see Core Utilities.

💡 Need Professional Support?
Need professional support with your walkerOS implementation? Check out our services.