Skip to content

on IOS socket is not staying open #11

@foolishsailor

Description

@foolishsailor

I have a tcp socket connection I am making to a device and am using this tool to stream data to an app. It makes two types of calls to the socket -

1 is for a small message that tells it the write and read pointer locations of data on the device - this message is around 30 chars

2 A continous stream of data sent from the device back to the app

On android it works flawlessly - however on IOS the socket receives the pointer message fine but when trying to stream data stops receiving data after three bursts. You can see the three dsata bits it will typically receive.

There is no close event or disconnect event being triggered.

I have tried setting the chrome.sockets.tcp.setKeepAlive to TRUE but this doesnt seem to do anything.

Any help would be appreciated


Sample log

d10DataListener || LOG | self.d10DataListener Start
TCP SOCKET CLIENT ON RECEIVE DATA : 111111,2904181734,101365,9796,2,143,0,640,79,40,3530,3585,56,293,640,3530,53336900

d10DataListener || LOG | self.d10DataListener Start
TCP SOCKET CLIENT ON RECEIVE DATA : 0,-61337000,1070,2000],[111111,2904181734,101366,9796,2,143,0,6

d10DataListener || LOG | self.d10DataListener Start
TCP SOCKET CLIENT ON RECEIVE DATA : 40,79,40,3530,3579,56,293,

d10DataListener || LOG | self.d10DataListener Start

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions