Skip to main content

Documentation Index

Fetch the complete documentation index at: https://socket-serve.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

connect

Establishes connection to socket server.
import { connect } from 'socket-serve/client';

const socket = connect(url, options);

Parameters

  • url (string, required) - Server endpoint URL
  • options.transport (string, optional) - Transport type: 'sse' or 'polling'

Returns

ClientSocket instance

Next Steps