SIP.JS with React Native

622 views
Skip to first unread message

Michael Hartomo

unread,
Jan 2, 2018, 2:48:35 AM1/2/18
to SIP.js
Hi,

I have tried the web version of SIP.JS for desktop and cordova, it works great.
Now when i tried on react-native
using this demo : https://github.com/oney/RCTWebRTCDemo
( Please remove and install the latest https://github.com/oney/react-native-webrtc )
use npm install --save sip.js

, then i got websocket error while creating ua:
 
    WebSocketEvent {type: "error", target: WebSocket, currentTarget: WebSocket, eventPhase: 2, bubbles: false…}
    bubbles
    :false
    cancelable
    :false
    currentTarget
    :WebSocket
    defaultPrevented
    :(...)
    eventPhase
    :2
    isTrusted
    :false
    target
    :WebSocket
    timeStamp
    :1514879142726
    type
    :"error"
    Symbol(canceled_flag):false
    Symbol(original_event):WebSocketEvent
    Symbol(stop_immediate_propagation_flag):false
    __proto__
    :WebSocketEvent


How to fix this? Thank you

Ashwin Nayar

unread,
Nov 30, 2018, 1:44:19 AM11/30/18
to SIP.js
Were you able to figure this out? I'm also trying to use the two libraries, but SIP.js uses the browser's APIs from the window object.

Eric Green

unread,
Nov 30, 2018, 7:12:16 AM11/30/18
to SIP.js
The SIP.js transport is modular. You will need to create your own for reach native.

panzer dev

unread,
Feb 14, 2024, 11:51:35 AM2/14/24
to SIP.js
Did you got any workaround?
Reply all
Reply to author
Forward
0 new messages