-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't connect to socket cluster server #17
Comments
Hi @kevinvella , can you give me detailed log for this? |
Hi @sacOO7, |
Hi @sacOO7 The exception that occurs on the xamarin forms app is the following: |
Hi @kevinvella , will take a look at it 👍 |
HI @kevinvella , I think it might be creating multiple service objects, so trying to connect to server multiple times. Can you move connect method somewhere else. It might work ... |
Also make sure you have proper permission to have network access. I think currently the connection might be running on UI thread. So you need to connect to server on background thread probably. |
Connected to localhost with following
With the following it doesn't connect Also tested with
|
Not sure why it's not able to resolve domain name. Try starting server on
specific ip address and then point socket to that address.
…On May 14, 2018 2:52 AM, "kevinvella" ***@***.***> wrote:
Connected to localhost with following
socket = new Socket("ws://127.0.0.1:8000/socketcluster/");
With the following it doesn't connect
socket = new Socket("ws://localhost:8000/socketcluster/");
Also tested with
Task.Run(() =>
{
socket.Connect();
});
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AP8vSXs8gB5f_Hi7ZrnRVGQRsjuw32t9ks5tyKQxgaJpZM4Tp2lb>
.
|
Will check later. |
Hi @kevinvella , any updated on this? If it's working, I will be closing the issue 👍 |
Hi @sacOO7 , Sorry for not posting any sooner. I haven't had any time to test. I switched to PureSocketCluster and it worked due to a project time constrains. I don't think the problem is in your lib. I think it's more related to how WebSocket4Net is working. Should we link this issue to WebSocket4Net repo issues? |
Hi @kevinvella , it should work on both libraries. I will look into the issue 👍 . |
Ok. Thanks. If i have time, i will also take a look |
Hi, Any updates on this? |
Hi @keveinvilla, I was not able to reproduce the issue, might have to look
into it again 😌. Not sure why it creates problem while connecting to
server. I believe it might be ip related issue since it was working for you
for localhost url
…On Jun 5, 2018 4:34 PM, "kevinvella" ***@***.***> wrote:
Hi,
Any updates on this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AP8vSf6DDYlnFrFua2maMm0SJSaYDV6mks5t5mXSgaJpZM4Tp2lb>
.
|
Hi @sacOO7, |
I have a weird issue. When connecting to a a web socket server using the domain name in a xamarin mobile application, the server is logging "SocketProtocolError: Socket hung up" and from the client "System.InvalidOperationException: Operation already in progress"
When i try the code from a console application, the client connects fine and is able to send and receive data
ScClient.Offical version is 1.1.2
Socket Cluster server versions:
"dependencies": {
"connect": "3.0.1",
"express": "4.14.0",
"minimist": "1.1.0",
"morgan": "1.7.0",
"sc-errors": "^1.4.0",
"sc-framework-health-check": "^2.0.0",
"sc-hot-reboot": "^1.0.0",
"scc-broker-client": "^3.0.0",
"serve-static": "1.11.2",
"socketcluster": "^11.2.0",
"socketcluster-client": "^11.0.1"
}
The text was updated successfully, but these errors were encountered: