Toggle navigation
Email or Username
Password
Remember
Login
Register
|
I forgot my password
Questions
Unanswered
Tags
Users
Ask a Question
What to do if the websockets module?
0
like
0
dislike
5
views
raechel implement a module for websockets
have questions on the implementation of the logic
I understand that the WEB server have to take the headers to the connection
to give the appropriate headers to the client and let the connection to the backend.
next hanging constant connection and the WEB server works as a proxy.
web-servers
asked
Mar 21, 2019
by
akalend
|
5
views
answer
comment
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
4
Answers
0
like
0
dislike
Let's see how they are made to nodejs, read the specs. But don't forget that the latest version of the Protocol contains a vulnerability, and has been withdrawn from Firefox & Opera.
answered
Mar 23, 2019
by
denver
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
You have 2 ways. From scratch
www.whatwg.org/specs/web-socket-protocol/
Or you can watch how it is done in the server-side
socket.io/
file That is responsible for logic ws
github.com/LearnBoost/Socket.IO-node/blob/master/lib/socket.io/transports/websocket.js
answered
Mar 23, 2019
by
akalend
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
how to make from scratch — it is more less clear
I wanted to integrate in an existing WEB server
this question
answered
Mar 23, 2019
by
akalend
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Now nginx can't proxy Websocket about Apache not sure. And no modules for native support of ws I is not found.
You can do this: to raise the WebSocket backend (node.js + socket.io) to put HAProxy in front of nginx, which will forward the requests to the ws-the backend directly.
Well, here's another option in php phpDaemon instead of stack node.js + socket.io:
habrahabr.ru/blogs/webdev/82140/
answered
Mar 23, 2019
by
vsviridov
ask related question
comment
Please
log in
or
register
to add a comment.
Related questions
0
like
0
dislike
3
answers
What is the difference if I place the server in Python without nginx or apache?
asked
Apr 9, 2019
by
Ingernirated
python
deployment
web-servers
0
like
0
dislike
2
answers
As for hosting is determined by the specific site if the IP of the server one?
asked
Apr 14, 2019
by
Senseich
the-domain-name-system
web-servers
0
like
0
dislike
2
answers
Courses/books/videos on the web servers what do you recommend?
asked
May 4, 2019
by
iitovka
nginx
web-servers
database-administration
0
like
0
dislike
1
answer
The forwarding of HTTP access to a third-party host at the end of the IPsec tunnelя, how to do?
asked
Jun 11, 2019
by
takeras
computer-networks
web-servers
network-administration
0
like
0
dislike
1
answer
How to do a redirect of directory to the root directory itself?
asked
May 21, 2019
by
anton99zel
htaccess
web-servers
url-handling
Most popular tags
javascript
php
css
html
jquery
wordpress
python
linux
web-development
mysql
android
windows
java
layout
c#
computer-networks
node.js
cpp
iron
yii
vue.js
1C-Bitrix
react
laravel
django
nginx
system-administration
search-engine-optimization
api
ubuntu
the-it-education.
ajax
sql
programming
hosting
cms
design
apache
google-chrome
bootstrap
Vkontakte
macos
google
network-administration
git
laptops
algorithms
regular-expressions
unity-game-engine
email
angular
database
network-equipment
software
wooсommerce
debian
.net
ios
information-security
video
law-in-it
browsers
books
parsing
wi-fi
game-development
career
htaccess
postgresql
telegram
mikrotik
mobile-development
ruby-on-rails
the-domain-name-system
modx
Yandex
c
json
opencart
Habr
freelance
vpn
asp.net
windows-server
symfony
bots
hard-drives
math
qt
DIY
audio
frontend
payment-system
bash
electronics
gulp.js
user-interface
docker
online-shopping
110,608
questions
257,186
answers
0
comments
32,869
users