WebSockets without any web browser involved?
up vote
0
down vote
favorite
I understand that WebSockets are built on TCP sockets and provide more user-friendly interfaces in terms of messages completion (see for instance this SO question: Differences between TCP sockets and web sockets, one more time ).
But could this alone justify choosing websockets over TCP sockets in a context where no web browser involved? Would such a design choice make sense or should WebSocket use be restricted to 'Web' environnents only?
sockets websocket
add a comment |
up vote
0
down vote
favorite
I understand that WebSockets are built on TCP sockets and provide more user-friendly interfaces in terms of messages completion (see for instance this SO question: Differences between TCP sockets and web sockets, one more time ).
But could this alone justify choosing websockets over TCP sockets in a context where no web browser involved? Would such a design choice make sense or should WebSocket use be restricted to 'Web' environnents only?
sockets websocket
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I understand that WebSockets are built on TCP sockets and provide more user-friendly interfaces in terms of messages completion (see for instance this SO question: Differences between TCP sockets and web sockets, one more time ).
But could this alone justify choosing websockets over TCP sockets in a context where no web browser involved? Would such a design choice make sense or should WebSocket use be restricted to 'Web' environnents only?
sockets websocket
I understand that WebSockets are built on TCP sockets and provide more user-friendly interfaces in terms of messages completion (see for instance this SO question: Differences between TCP sockets and web sockets, one more time ).
But could this alone justify choosing websockets over TCP sockets in a context where no web browser involved? Would such a design choice make sense or should WebSocket use be restricted to 'Web' environnents only?
sockets websocket
sockets websocket
asked Nov 10 at 20:54
Silverspur
243622
243622
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
3
down vote
The main point of WebSockets is that they can be integrated into the typical HTTP infrastructure, i.e. they start with a HTTP handshake (or HTTPS with wss://) and are also designed to deal with HTTP proxies, look (initially) like HTTP and can use the same ports so that they can pass through firewalls ...
If these properties are needed than WebSockets are a good choice even outside of browsers. If these are not needed less complex protocols might be sufficient instead.
add a comment |
up vote
2
down vote
WebSockets have an advantage over a custom TCP/IP solutions, since WebSockets experience less connectivity issues.
This is especially true for TLS + WebSockets (wss://
) over port 443, and it's a benefit that isn't browser (or HTTP) specific.
This is because many firewalls, bridges and other intermediaries block different TCP/IP ports or allow limited traffic to pass through. Traffic over the HTTP and HTTPS ports (80 and 443) is often allowed even in stricter environments, which improves the chance of establishing (and retaining) a connection.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
The main point of WebSockets is that they can be integrated into the typical HTTP infrastructure, i.e. they start with a HTTP handshake (or HTTPS with wss://) and are also designed to deal with HTTP proxies, look (initially) like HTTP and can use the same ports so that they can pass through firewalls ...
If these properties are needed than WebSockets are a good choice even outside of browsers. If these are not needed less complex protocols might be sufficient instead.
add a comment |
up vote
3
down vote
The main point of WebSockets is that they can be integrated into the typical HTTP infrastructure, i.e. they start with a HTTP handshake (or HTTPS with wss://) and are also designed to deal with HTTP proxies, look (initially) like HTTP and can use the same ports so that they can pass through firewalls ...
If these properties are needed than WebSockets are a good choice even outside of browsers. If these are not needed less complex protocols might be sufficient instead.
add a comment |
up vote
3
down vote
up vote
3
down vote
The main point of WebSockets is that they can be integrated into the typical HTTP infrastructure, i.e. they start with a HTTP handshake (or HTTPS with wss://) and are also designed to deal with HTTP proxies, look (initially) like HTTP and can use the same ports so that they can pass through firewalls ...
If these properties are needed than WebSockets are a good choice even outside of browsers. If these are not needed less complex protocols might be sufficient instead.
The main point of WebSockets is that they can be integrated into the typical HTTP infrastructure, i.e. they start with a HTTP handshake (or HTTPS with wss://) and are also designed to deal with HTTP proxies, look (initially) like HTTP and can use the same ports so that they can pass through firewalls ...
If these properties are needed than WebSockets are a good choice even outside of browsers. If these are not needed less complex protocols might be sufficient instead.
answered Nov 10 at 21:12
Steffen Ullrich
58.2k35395
58.2k35395
add a comment |
add a comment |
up vote
2
down vote
WebSockets have an advantage over a custom TCP/IP solutions, since WebSockets experience less connectivity issues.
This is especially true for TLS + WebSockets (wss://
) over port 443, and it's a benefit that isn't browser (or HTTP) specific.
This is because many firewalls, bridges and other intermediaries block different TCP/IP ports or allow limited traffic to pass through. Traffic over the HTTP and HTTPS ports (80 and 443) is often allowed even in stricter environments, which improves the chance of establishing (and retaining) a connection.
add a comment |
up vote
2
down vote
WebSockets have an advantage over a custom TCP/IP solutions, since WebSockets experience less connectivity issues.
This is especially true for TLS + WebSockets (wss://
) over port 443, and it's a benefit that isn't browser (or HTTP) specific.
This is because many firewalls, bridges and other intermediaries block different TCP/IP ports or allow limited traffic to pass through. Traffic over the HTTP and HTTPS ports (80 and 443) is often allowed even in stricter environments, which improves the chance of establishing (and retaining) a connection.
add a comment |
up vote
2
down vote
up vote
2
down vote
WebSockets have an advantage over a custom TCP/IP solutions, since WebSockets experience less connectivity issues.
This is especially true for TLS + WebSockets (wss://
) over port 443, and it's a benefit that isn't browser (or HTTP) specific.
This is because many firewalls, bridges and other intermediaries block different TCP/IP ports or allow limited traffic to pass through. Traffic over the HTTP and HTTPS ports (80 and 443) is often allowed even in stricter environments, which improves the chance of establishing (and retaining) a connection.
WebSockets have an advantage over a custom TCP/IP solutions, since WebSockets experience less connectivity issues.
This is especially true for TLS + WebSockets (wss://
) over port 443, and it's a benefit that isn't browser (or HTTP) specific.
This is because many firewalls, bridges and other intermediaries block different TCP/IP ports or allow limited traffic to pass through. Traffic over the HTTP and HTTPS ports (80 and 443) is often allowed even in stricter environments, which improves the chance of establishing (and retaining) a connection.
answered Nov 11 at 2:02
Myst
11.8k22542
11.8k22542
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243315%2fwebsockets-without-any-web-browser-involved%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown