JavaPhoenixChannels
JavaPhoenixChannels copied to clipboard
Java and Android channel client for the Phoenix Framework
### My channel.ex file: ```elixir def handle_in("locations", _payload, socket) do broadcast!(socket, "locations", %{ping: "succeed"}) {:reply, {:ok, %{ping: "succeed"}}, socket} end ``` My MainActivity.ex ```java package com.example.phoenix_channel_test; import androidx.appcompat.app.AppCompatActivity; import org.phoenixframework.channels.*;...
hellow ,i want to using JavaPhoenixChannels to android , and i have two problems first problem i add ``` repositories { google() jcenter() maven { url 'http://dl.bintray.com/eoinsha/java-phoenix-channels' } } ```...
I think that the title is self-explanatory. When I try to use the following: ``` URI uri = new URI("ws://localhost:4000/plugin/websocket"); Socket socket = new Socket(uri.toString()); socket.connect(); JsonNode node = JsonNodeFactory.instance.objectNode()...
It looks like there are some updates here needed to support presence. In particular in the JavaScript client, they have a Presence module with a couple of functions on it....
I tried to disconnect wifi connection, then, connecting again, the socket tried to connect successfully, however when try to push again on the channel I will get error on server...
I don't if this is really an issue with the library or a mistake on my end so I post here anyway. This is my build configuration: apply plugin: 'com.android.application'...
One of the new features in Phoenix 1.3 is "[Channel] Add V2 of wire channel wire protocol with resolved race conditions and compacted payloads" https://github.com/phoenixframework/phoenix/blob/master/CHANGELOG.md It would be great to...