Comments (5)
Big tnx. I made my own socket transport using code from WebSocketTransport class. And then added just my headers for WebSocket.connect.
from connectanum-dart.
You could definitly do it by extending one of the transport classes
// Start a client that connects without the usage of an authentication process
final client1 = Client(
// The realm to connect to
realm: 'demo.connectanum.receive',
// We choose WebSocket transport
transport: MyCustomWebSocketTransport( ///<---------------- write your own
'wss://www.connectanum.com/wamp',
// if you want to use msgpack instead of JSON just import the serializer
// from package:connectanum/msgpack.dart and use WebSocketSerialization.SERIALIZATION_MSGPACK
Serializer(),
WebSocketSerialization.SERIALIZATION_JSON,
));
What platform are you aiming? Maybe I can help.
from connectanum-dart.
You could definitly do it by extending one of the transport classes
// Start a client that connects without the usage of an authentication process final client1 = Client( // The realm to connect to realm: 'demo.connectanum.receive', // We choose WebSocket transport transport: MyCustomWebSocketTransport( ///<---------------- write your own 'wss://www.connectanum.com/wamp', // if you want to use msgpack instead of JSON just import the serializer // from package:connectanum/msgpack.dart and use WebSocketSerialization.SERIALIZATION_MSGPACK Serializer(), WebSocketSerialization.SERIALIZATION_JSON, ));What platform are you aiming? Maybe I can help.
Ok tnx. I will take a look.
from connectanum-dart.
And I want to do it on iOS.
from connectanum-dart.
It looks like, that I will need help this one. I have no idea how to add logic for my custom socket transport class, so that plugin sends specific header.
from connectanum-dart.
Related Issues (20)
- Add way more logging!
- Resubscribe to Topics on Reconnection HOT 2
- Was there dublicate sessions fix from version 1.0.6 to 1.1.6 HOT 1
- WAMPCRA: Only derive key when `salt` present in Challenge HOT 11
- Session call arguments type HOT 2
- session.publish seem to stuck HOT 4
- Session.publish with PublishOptions(acknowledge: false) waits for `PUBLISHED`
- Strange behaviour of Session.publish and/or Session.subscribe HOT 2
- Session.call seem to block HOT 3
- Cache stored key for scram authentication
- Support multiple serializers HOT 18
- Implement CBOR serializer HOT 15
- Better reconnection handling HOT 1
- Implement Payload PassThru Mode HOT 4
- Flaute WebApp Chrome Webhost is not supporting dart.html HOT 9
- Auth failure response doesn't seem right HOT 19
- not connect websocket HOT 2
- Currently the connection doesn't support authextra HOT 2
- Unable to catch error HOT 7
- Support dart2wasm compilation HOT 2
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 connectanum-dart.