Skip to main content
Get your web application connected to social.plus in just a few steps. This guide covers everything from installation to your first authenticated session.

Requirements

Browser Support

  • Chrome 38+
  • Firefox 42+
  • Safari 9+
  • Microsoft Edge 13+
  • Opera 25+
Internet Explorer 11 is not supported. The SDK requires modern browser features.

Framework Compatibility

React Applications

  • Create React App
  • Next.js (client-side)
  • Vite React
  • Custom React setups

Vue Applications

  • Vue 3 composition API
  • Vue 2 options API
  • Nuxt.js (client-side)
  • Vite Vue

Angular Applications

  • Angular 12+
  • Angular CLI projects
  • Nx workspaces
  • Custom Angular setups

Other Frameworks

  • React Native
  • Svelte/SvelteKit
  • Solid.js
  • Lit Framework

Installation

npm install @amityco/ts-sdk --save

Web Development Best Practices

Performance Optimization

  • Bundle Splitting: Load SDK components on-demand
  • Connection Pooling: Reuse WebSocket connections efficiently
  • Caching Strategy: Implement smart caching for API responses
  • Lazy Loading: Load features as users need them

User Experience

  • Loading States: Show progress during data fetching
  • Error Boundaries: Graceful error handling and recovery
  • Offline Support: Cache critical data for offline access
  • Responsive Design: Optimize for all device types

Security Considerations

  • Environment Variables: Store API keys securely
  • HTTPS Only: Ensure secure communication
  • Content Security Policy: Implement CSP headers
  • Input Validation: Sanitize user inputs properly

Next Steps

Authentication Guide

Learn about session management and secure authentication flows

Chat Features

Start building chat and messaging features

Social Features

Add posts, feeds, and social interactions

Video Streaming

Implement live video and streaming features

Troubleshooting

Module not found: Make sure you’ve installed the package correctly with your package managerTypeScript errors: Ensure you’re using TypeScript 3.7+ and have proper type definitionsBuild errors: Check that your bundler supports ES6 modules and async/await
Older browsers: Make sure you’ve included the required polyfillsSafari issues: Ensure you’re using HTTPS in production (required for WebRTC features)
Network failures: Verify your API key and region settingsAuthentication errors: Check that your auth token is valid and not expiredMemory leaks: Always call client.logout() when your app unmounts