Comments (3)
I don't believe either dart:io
or dart:html
's WebSocket
implementations, which this wraps, expose any way of configuring the timeout. Unless they both do, this package can't either.
from web_socket_channel.
in examples there are this code:
var client = new HttpClient();
var request = await client.openUrl(
"GET", Uri.parse("http://localhost:${server.port}"));
request.headers
..set("Connection", "Upgrade")
..set("Upgrade", "websocket")
..set("Sec-WebSocket-Key", "x3JJHMbDL1EzLkh9GBhXDw==")
..set("Sec-WebSocket-Version", "13");
var response = await request.close();
var socket = await response.detachSocket();
var innerChannel = new StreamChannel<List<int>>(socket, socket);
var webSocket = new WebSocketChannel(innerChannel, serverSide: false);
May be it possible to configure in that maner?
from web_socket_channel.
I did this way
from web_socket_channel.
Related Issues (20)
- Auto invoke onDown method to close websocket. HOT 1
- Specifying 'protocols' (Sec-WebSocket-Protocol header) causes connection to close.
- HTML: When the WebSocket is in a 'pending' state, calling channel.sink.close does not work. HOT 2
- Masking is not cryptographically secure HOT 1
- I tried to connect with localhost 8081 port but its connect with diffrent port HOT 2
- FormatException: Unexpected character
- Simplify the web_socket_channel implementation HOT 5
- Message received in wrong order
- Support MSGPACK HOT 1
- Any problems with WebSocketChannel.connect under iOS 17.5 beta (or earlier)? HOT 3
- 🐛 RangeError (code): Invalid value: Not in inclusive range 3000..4999: 1000 after updating to 3.0.0 from 2.4.0 HOT 6
- Missing tags for 2.4.5 and 3.0.0
- Conflict package build_runner versions HOT 1
- Documentation for the 3.x migration HOT 12
- Unexpected Behavior and Premature Closure when Using web_socket_channel to Connect to WebSocket Server HOT 2
- WebSocket clients using Apple private relay can't connect to WebSocket server
- WebSocketChannel has unexpected close code
- WebSocketChannel close code throws exception
- There is not way to get acknowledgement of sent messages. HOT 1
- WebSocket support custom sni host,when use doh HOT 1
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 web_socket_channel.