Giter Site home page Giter Site logo

codeigniter4-websocket's Introduction

Views

Hi there πŸ‘‹

I'm Taki Ahmad Elias. A Self-Taught Polyglot Programmer, Learner.

My Precious PHP Library

Laravel

tablar tablar-kit

Codeigniter

codeigniter-websocket codeigniter4-websocket

If you appreciate what I do,

I'd love to have a cup of coffee from you!

takielias

Get me

TakiElias's GitHub stats

TakiElias's Streak

codeigniter4-websocket's People

Contributors

takielias avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codeigniter4-websocket's Issues

ssociate it to a controller

How can I associate it to a controller that, when interacting with the controller, sends messages to all clients?

Event callback is not called

public function _event($datas = null)
{
// Here you can do everyting you want, each time message is received
echo 'Hey ! I'm an EVENT callback' . PHP_EOL;
}

This event functions is not called in Websocket.php
Please guide me. I need messages in my controller on new message received

all client send message from server

Argument 1 passed to Takielias\CodeigniterWebsocket\Libraries\Server::onMessage() must be an instance of Ratchet\ConnectionInterface, instance of WebSocket\Client given, called in E:\vh\go-to-astro\app\Controllers\ChatW.php on line 32

Composer error

I am trying to install the library with Composer but I get the following error"[InvalidArgumentException]
Could not find a version of package takielias/codeigniter4-websocket matching your minimum-stability (stable). Requ
ire it with an explicit version constraint allowing its desired stability."

Not able to start the server

Hi,

I am unable to start the WebSocket server..

An uncaught Exception was encountered

Type: Error
Message: Class 'Libraries\Server' not found
Filename: /home/codeigniter/app/Libraries/CodeigniterWebsocket.php
Line Number: 89

    Backtrace:
                                            -31 - /home/codeigniter/app/Controllers/Websocket.php::run
                                                            -918 - /home/codeigniter/vendor/codeigniter4/framework/system/CodeIgniter.php::start
                                                            -404 - /home/codeigniter/vendor/codeigniter4/framework/system/CodeIgniter.php::runController
                                                            -312 - /home/codeigniter/vendor/codeigniter4/framework/system/CodeIgniter.php::handleRequest
                                                            -45 - /home/codeigniter/public_html/index.php::run

Error $jwt_key

An error has occurred: Undefined property: Takielias\CodeigniterWebsocket\Libraries\CodeigniterWebsocket::$jwt_key

I had to modify vendor/takielias/codeigniter4-websocket/src/Libraries/CodeigniterWebsocket.php.

And add
Capture d’écran 2024-03-12 aΜ€ 14 33 27

But I do not think it's the good solution because it's git ignore

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.