Comments (12)
Fixed by editing Podfile
, added use_frameworks!
to this line:
target 'Runner' do
use_frameworks!
Thanks for the plugin!
from flutter_socket_io.
Try the following:
- Run the project from XCode
- dele podfile.lock and try building again
- Try upgrading to latest version of flutter if not already using one
from flutter_socket_io.
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.
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.
@Morthor upgrade to 0.1.7 and see if the logs problem is resolved
from flutter_socket_io.
from flutter_socket_io.
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.
@Morthor are you testing on iOS or Android?
from flutter_socket_io.
@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.
Fixed released in 0.1.11
Please close this if it is resolved
from flutter_socket_io.
Still facing this bug on v0.2.0
from flutter_socket_io.
Apply @brooth 's solution if you are facing the same issue
from flutter_socket_io.
Related Issues (20)
- Socket triggered::connect_error HOT 1
- Execution failed for task ':adhara_socket_io:generateDebugRFile'. HOT 1
- Listener when instance cleared HOT 1
- 您好,io.socket.engineio.client.EngineIOException: xhr poll error HOT 5
- Null safety migration HOT 3
- compiling for iOS 9.0, but module 'SocketIO' has a minimum deployment target of iOS 10.0 HOT 1
- Compilation errors on IOS with Socket.IO-Client-Swift (16.0.1) HOT 2
- Build failed in ios HOT 1
- Unhandled Exception: MissingPluginException(No implementation found for method newInstance on channel adhara_socket_io) HOT 1
- E/flutter (31549): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: PlatformException(error, Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference, null, java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference HOT 2
- Fine on Android devices. But error on iOS devices HOT 1
- Message NOT send on iPhone 11 Pro Max - iOS 14.6
- socket.off(eventName) is removed in 1.0.1+1 HOT 2
- null safety not supportable HOT 4
- How can I send json Data to emit.
- is this package disconnected?
- support the android volume 2 HOT 1
- adhara_socket_io use a deprecated version of the Android embedding
- Parse Issue (Xcode): Module 'adhara_socket_io' not found
- Parse Issue (Xcode): Module 'adhara_socket_io' not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_socket_io.