Giter Club home page Giter Club logo

Comments (12)

brooth avatar brooth commented on May 19, 2024 2

Fixed by editing Podfile, added use_frameworks! to this line:

target 'Runner' do
  use_frameworks!

Thanks for the plugin!

from flutter_socket_io.

tiholic avatar tiholic commented on May 19, 2024

Try the following:

  1. Run the project from XCode
  2. dele podfile.lock and try building again
  3. Try upgrading to latest version of flutter if not already using one

from flutter_socket_io.

Morthor avatar Morthor commented on May 19, 2024

Hi. I've managed to get it running when recreating the iOS files with Swift support. Thank you.

I have another question though. Why is there no method to disconnect from a websocket? I can't seem to find it anywhere.

Also, why does the package always print parts of the received message in a strange format into the log?

Should I open a different issue for the 2 above?

Thank you.

from flutter_socket_io.

tiholic avatar tiholic commented on May 19, 2024

There is a clearInstance instance method in SocketIOManager which disconnects a socket instance.

And yes, please open up as separate issues and share the strange long along in the issue description.

from flutter_socket_io.

tiholic avatar tiholic commented on May 19, 2024

@Morthor upgrade to 0.1.7 and see if the logs problem is resolved

from flutter_socket_io.

Morthor avatar Morthor commented on May 19, 2024

from flutter_socket_io.

Morthor avatar Morthor commented on May 19, 2024

Hi @tiholic

The log has improved. Although I still get this often when receiving data:

flutter: /
    clientId = KW4lJargbXFCf9BeAAAD;
}]; id: -1; placeholders: -1; nsp: /}
    clientId = KW4lJargbXFCf9BeAAAD;
}]
    clientId = KW4lJargbXFCf9BeAAAD;
}]; id: -1; placeholders: -1; nsp: /}
    clientId = KW4lJargbXFCf9BeAAAD;
}]
    clientId = KW4lJargbXFCf9BeAAAD;
}]; id: -1; placeholders: -1; nsp: /}
    clientId = KW4lJargbXFCf9BeAAAD;
}]
    clientId = KW4lJargbXFCf9BeAAAD;
}]; id: -1; placeholders: -1; nsp: /}
    clientId = KW4lJargbXFCf9BeAAAD;
}]
[367 6D8ED899-8C7D-40CD-86AD-8A83BCCC9BAC 127.0.0.1.55247<->127.0.0.1:3003]
	Connected Path: satisfied (Path is satisfied), interface: lo0
	Duration: 65.781s, , TCP @0.005s took 0.013s
	bytes in/out: 146/310, packets in/out: 6/6, rtt: 0.000s, retransmitted packets: 0, out-of-order packets: 0

And this when sending data:

)
{
    downVotes = 0;
    title = 123123;
    upVotes = 0;
    user = HLJcRi2Q8ZdpxSTdAAAG;
}
)
]; id: -1; placeholders: -1; nsp: /}
        {
        downVotes = 0;
        title = 123123;
        upVotes = 0;
        user = HLJcRi2Q8ZdpxSTdAAAG;
    }
) with data: []
{
    downVotes = 0;
    title = 123123;
    upVotes = 0;
    user = HLJcRi2Q8ZdpxSTdAAAG;
}
)
]; id: -1; placeholders: -1; nsp: /}
        {
        downVotes = 0;
        title = 123123;
        upVotes = 0;
        user = HLJcRi2Q8ZdpxSTdAAAG;
    }
) with data: []
{
    downVotes = 0;
    title = 123123;
    upVotes = 0;
    user = HLJcRi2Q8ZdpxSTdAAAG;
}
)
]; id: -1; placeholders: -1; nsp: /}
        {
        downVotes = 0;
        title = 123123;
        upVotes = 0;
        user = HLJcRi2Q8ZdpxSTdAAAG;
    }
) with data: []

from flutter_socket_io.

tiholic avatar tiholic commented on May 19, 2024

@Morthor are you testing on iOS or Android?

from flutter_socket_io.

vu111293 avatar vu111293 commented on May 19, 2024

@Morthor I get same issue. I will build on Xcode with case: adhara_socket_io 0.1.7
Please give me a solution. Tks

from flutter_socket_io.

tiholic avatar tiholic commented on May 19, 2024

Fixed released in 0.1.11

Please close this if it is resolved

from flutter_socket_io.

brooth avatar brooth commented on May 19, 2024

Still facing this bug on v0.2.0

from flutter_socket_io.

tiholic avatar tiholic commented on May 19, 2024

Apply @brooth 's solution if you are facing the same issue

from flutter_socket_io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.