# Ionic + Firebase + Websocket ERROR

**URL:** <https://forum.ionicframework.com/t/ionic-firebase-websocket-error/99174>\
**Category:** ionic-v3\
**Created:** [July 22, 2017, 1:48pm UTC](https://forum.ionicframework.com/t/ionic-firebase-websocket-error/99174 "2017-07-22T13:48:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![antoinedupont](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@antoinedupont](https://forum.ionicframework.com/u/antoinedupont)\
**Post date:** [July 22, 2017, 1:48pm UTC](https://forum.ionicframework.com/t/ionic-firebase-websocket-error/99174/1 "2017-07-22T13:48:37Z")

</div>

When I upload a certain amount of data to the Firebase database, I get the following error:

```auto
WebSocket connection to ... failed: Failed to send WebSocket frame.
Firebase Database (4.1.3) INTERNAL ASSERT FAILED: sendRequest call when we re not connected not allowed.

```

Eventually, the data is sent to firebase, but after 20 seconds instead of 1 second.  
The error only seems to happen on iOS.

Anyone have any idea/solution about this issue?

```auto
ionic info

global packages:

    @ionic/cli-utils : 1.5.0
    Cordova CLI : 7.0.1 
    Ionic CLI : 3.5.0

local packages:

    @ionic/app-scripts : 2.0.2
    @ionic/cli-plugin-cordova : 1.4.1
    @ionic/cli-plugin-ionic-angular : 1.3.2
    Cordova Platforms : android 6.2.3 ios 4.4.0
    Ionic Framework : ionic-angular 3.5.3

System:

    Node : v6.11.0
    OS : macOS Sierra
    Xcode : Xcode 8.3.3 Build version 8E3004b 
    ios-deploy : 1.9.1 
    ios-sim : 5.1.0 
    npm : 5.3.0 

```
