H
H
hollanditkzn2017-05-23 10:14:55
Computers
hollanditkzn, 2017-05-23 10:14:55

Clarification on the widget documentation?

I am using the yii2-node-socket widget / The question is that the documentation describes the code that needs to be added

###Events

###Work in javascript

Use YiiNodeSocket class

####Start work

// create object
var socket = new YiiNodeSocket();

// enable debug mode
socket.debug(true);

socket.onConnect(function () {
  // fire when connection established
});

socket.onDisconnect(function () {
  // fire when connection close or lost
});

socket.onConnecting(function () {
  // fire when the socket is attempting to connect with the server
});

socket.onReconnect(function () {
  // fire when successfully reconnected to the server
});

And so on. Only it is not indicated where to write about or I did not find something. In debugging, he now scolds that he did not find the file GET crm/frontend/web/assets/c82ee7b9/client/client.js 404 (Not Found). This file is not there, do you need to create such a file and enter this code or not?
And if you add this to the client.js file, then this problem comes out Uncaught ReferenceError: YiiNodeSocket is not defined
at client.js:2

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Melkij, 2018-08-17
shamrockapple

No.
The E5300 does not have a video core at all, and therefore this processor , in principle, cannot interact with the monitor in any way.
If your motherboard has video outputs, then the video core is built into the motherboard, usually in those ancient times it was part of the north bridge. Accordingly, it is necessary to clarify according to the specification of the motherboard.
Two monitors - most likely yes, with three I remember there were difficulties. But usually you can put some simple discrete graphics card.

V
Vladislav Lyskov, 2018-08-17
@Vlatqa

it does not depend on this processor

M
Maxim Timofeev, 2017-05-23
@webinar

There are also examples there:
https://github.com/ratacibernetica/yii2-node-socke...
But in your place, I first studied enough php, node.js and sockets in principle. Because when you solve a problem, you run into a whole bunch of others. You took on a very difficult thing, having too modest knowledge behind your back.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question