Comments (4)
In an ideal world with lots of time, do both, haha.
Looks like maybe mockwebserver from okhttp can mock out websockets. But I wasn't sure if this library only speaks to Phoenix channels (I'm ignorant as to how those differ from say a Node/Socket.io websocket) or not.
I think it would be a win to have a simple Phoenix app and have a test that happens at an "integration" level. In our current case we go through that process of testing web socket connections manually with the server team. So I'm not sure we'd ever run that in an automated suite, but it makes it nice to just roll over to a test and hit "Run" from within Android Studio.
from javaphoenixchannels.
I went with the first option when I was facing the same issue in Scala land. Since the protocol wasn't really specified anyway, I decided to use an echo app to discover and test it, bundled it together in a Docker image and use that to test locally and on CircleCI.
from javaphoenixchannels.
@virtualandy I saw that as well. That might be the way to go. Phoenix Channels are just a protocol on top of websockets (or other transports) So mockwebserver and its websocket mocking would work here.
@taig that's a great idea! Maybe something to look into if we set up some integration testing and CI here.
from javaphoenixchannels.
@bryanjos Feel free to have a look at my Docker/CircleCI configuration: https://github.com/taig/akka-http-phoenix
from javaphoenixchannels.
Related Issues (20)
- This lib supports wss? HOT 2
- java.lang.NoClassDefFoundError: org.phoenixframework.channels.Socket$PhoenixWSListener HOT 2
- Please support V2 of wire channel wire protocol (introduced in Phoenix 1.3)
- android.os.NetworkOnMainThreadException HOT 1
- Phoenix 1.3 - UnrecognizedPropertyException: Unrecognized field "join_ref" HOT 2
- JavaPhoenixChannels + Okhttp3 v3.8.1 HOT 2
- android.system.ErrnoException: sendto failed: EPIPE (Broken pipe)
- java.lang.NullPointerException:
- E/Socket: Failed to read message payload HOT 1
- Phoenix Socket with okhttp3 HOT 3
- Spurious retransmission of heartbeat HOT 2
- Make this compatible with phoenix 1.3 HOT 1
- Make okhttp client configurable.
- Is this library still maintained? HOT 10
- Include guide in Readme needs update HOT 1
- I can't download successful version JavaPhoenixChannels 1.0 for androidstudio,and error reporting when i using version 0.2 to disconnection reconnection HOT 2
- Maven import does not work
- I can't download successful version JavaPhoenixChannels 1.0 for androidstudio
- Websocket hangs after channel join
- Channel.push is not working
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 javaphoenixchannels.