S
S
StuGGs2014-07-03 13:22:25
Node.js
StuGGs, 2014-07-03 13:22:25

How to embed chat using socket.io on a website?

Hello!
Wrote a chat with socket.io + node.js. While testing locally (localhost:3000).
The question arose of how to implement it on a real site at the address (for example): www.adress.ru/chat?
Recently started doing web development. Tell me please.
In addition to using iftame, nothing comes to mind.
Or, in order to have the necessary address www.adress.ru/chat, you need to register the CNC settings in htaccess?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Serykh, 2014-07-10
@seryh

no iframe is needed, there will be a separate node.js server, html can render your main engine, and the logic of the client side of your chat will be located on it. the node.js server is only required to send data over the socket. everything is simple and without crutches, htaccess does not need to be touched at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question