Git Product home page Git Product logo

Comments (4)

morozovsk avatar morozovsk commented on July 19, 2024 1

в этом вопросе нет никакой информации, а её нужно много :)

  1. sent.php - это только пример, какая строчка использовалась для отправки сообщения
  2. какой она вернула результат
  3. на правильный ли сокет отправлялась информация
  4. какой код вебсокет клиент использовался (т.е. обработчик)
  5. клиенту не пришло сообщение, но пришло ли оно в в обработчик локального сокета

from yii2-websocket.

morozovsk avatar morozovsk commented on July 19, 2024

for example: https://github.com/morozovsk/websocket-examples/tree/master/chat3/server

from yii2-websocket.

pro-sunny avatar pro-sunny commented on July 19, 2024

I have the same question. I've moved send.php to a separate directory to have an ability call it easily and after executing send.php, connection is established correctly however message is not show up.

  1. Should send.php be executed via yii?
  2. What could be the reason of message to not show up anywhere?

from yii2-websocket.

pro-sunny avatar pro-sunny commented on July 19, 2024

Спасибо за Ваши вопросы, пока искал на них ответы, нашел в чем была проблема :)
А она оказалась в том что для теста я использовал сервер чата, а он разрешал отправлять сообщения только авторизированным пользователям. Ну и подключение к потоку я сделал уже через yii2websocket\Connection.
Спасибо еще раз за уделенное время и за хорошую библиотеку :)

from yii2-websocket.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.