Before connecting, let’s check if your HAIP server is running:
Copy
# Check default server healthnode dist/index.js health# Check specific servernode dist/index.js health --url http://localhost:8080# Get JSON outputnode dist/index.js health --format json
Expected output:
Copy
✅ Server is healthyStatus: OKUptime: 2h 15m 30sConnections: 5Version: 1.1.2
# Send a simple text messagenode dist/index.js send text "Hello, HAIP!"# Send with specific channel and authornode dist/index.js send text "Hello from user" --channel USER --author user# Send within a run contextnode dist/index.js send text "Hello" --run-id run-123 --thread-id thread-456
# Start a simple runnode dist/index.js send run# Start with thread IDnode dist/index.js send run --thread-id my-thread# Start with metadatanode dist/index.js send run --metadata '{"user":"alice","session":"chat-1"}'
# 1. Check server healthnode dist/index.js health# 2. Start monitoring in backgroundnode dist/index.js monitor --follow &# 3. Start a runnode dist/index.js send run --thread-id test-session# 4. Send a messagenode dist/index.js send text "Hello, can you help me with a calculation?" --thread-id test-session# 5. Call a toolnode dist/index.js send tool calculator expression="15 * 23" --thread-id test-session# 6. Send another messagenode dist/index.js send text "Thank you!" --thread-id test-session# 7. Stop monitoringkill %1
# Check if server is runningnode dist/index.js health# Try different transportnode dist/index.js connect http://localhost:8080 --transport sse# Check with verbose outputnode dist/index.js connect ws://localhost:8080 --verbose