Open tyagi85prashant opened 6 years ago
I believe you need to set socket.setAuthToken
before you run socket.connect()
. Auth should happen automatically. You don't need to manually emit an auth event. Let me know if that works for you.
Yeah @kyle-copeland Thanks for the reply 👍
can you please provide an sample working code, I'm also having the same issue
please example of working code!
@dalakada @desided @tyagi85prashant Please look here for solution https://github.com/sacOO7/socketcluster-client-java/issues/17
Hi @desided @dalakada @tyagi85prashant @kyle-copeland This should work for you https://gist.github.com/sacOO7/a3fc817dfc5c85cf21ec96f09869fdfc
@desided @dalakada @tyagi85prashant @kyle-copeland , please let me know your updates on this. Will close the issue, once it gets resolved
Hi i am trying to get websocket stream using following code
`import com.neovisionaries.ws.client.WebSocketException; import com.neovisionaries.ws.client.WebSocketFrame; import io.github.sac.*;
import java.util.List; import java.util.Map;
import org.codehaus.jettison.json.JSONException; import org.codehaus.jettison.json.JSONObject;
public class Main {
}`
I am emitting the auth msg but still i ma getting the following error:
Can you please help