phoenix-to-redux
  • Overview
  • Installation
  • Quick Start
  • Reference
    • API Reference
      • Socket
        • Methods
          • disconnectPhoenix
          • connectPhoenix
        • Events
          • SOCKET_ERROR
          • SOCKET_OPEN
          • SOCKET_DISCONNECT
          • SOCKET_CLOSE
          • SOCKET_CONNECT
      • Channel
        • Methods
          • leavePhoenixChannel
          • leavePhoenixChannelEvents
          • leavePhoenixChannelEvent
          • getPhoenixChannel
          • pushPhoenixChannel
        • Events
          • CHANNEL_ERROR
          • CHANNEL_LEAVE
          • CHANNEL_JOIN_ERROR
          • CHANNEL_JOIN
          • CHANNEL_TIMEOUT
          • CHANNEL_PUSH_ERROR
          • CHANNEL_CLOSE
Powered by GitBook

Copyright (c) 2020 Trixta Inc

On this page

Was this helpful?

Export as PDF
  1. Reference
  2. API Reference
  3. Socket
  4. Methods

connectPhoenix

This method will setup and connect the phoenix socket

PreviousdisconnectPhoenixNextEvents

Last updated 2 years ago

Was this helpful?

import { connectPhoenix } from '@trixtateam/phoenix-to-redux';

Parameters

Parameter
Description
Type
Required

domainUrl

socket endpoint to connect to

string

params

optional parameters to pass when connecting to socket

any

options

optional configuration options

options