Giter Site home page Giter Site logo

confer's People

Contributors

dazzz1er avatar nicoqh 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

confer's Issues

How to generate a link for start new chat with a user

Hi guys,

i need a little bit help. I experience difficulties to create a link for direct starting a new chat with that user. I found that code, but when i click on it, nothing happens (no errors in Firebug), so i think i am missing something. Here is the code:

<ul class="confer-user-list confer-online-list"> <li data-userId="{{ $user->id }}"> <img class="confer-user-avatar" src="{{ url('/') . '/'.config('confer.avatar_dir') . $user->avatar }}"> <span class="confer-user-name">{{ $user->name }}</span> </li> </ul>

Any suggestions ?

bindShared not working?

"Call to undefined method Illuminate\Foundation\Application::bindShared()"

I use laravelcollective/html.

What is the problem?

Pointless if else in Message Class for getEventData

why is there an if else statement here when both arrays are the same data?

public function getEventData($type = 'private')
    {
        return $type === 'global' ? [
            'conversation' => $this->conversation,
            'message' => $this,
            'sender' => $this->sender
        ] : [
            'conversation' => $this->conversation,
            'message' => $this,
            'sender' => $this->sender
        ];
    }

WebSocket is closed before the connection is established.

Hello !

I have a problem with this package, i can't connect to my app :/
I have the message : "WebSocket is closed before the connection is established", and I don't know how to resolve it.

I'm using Laravel 5.1.

Thanks for your help !

User to user messaging

Hi,

did you think of "private" messaging support (select user(s) from list and start a chat? Because now it looks like you have chat rooms that all users can join.

Code is not working in localhost

untitled

Hello sir,
i have download the code from the github. And Extract in the local on my system after that excute the command "composer require pusher/pusher-php-server dev-master" and composer require djb/confer dev-master .But all files not coming i also attach the image .Pls help me ...

Thank you

Like what you've done

I like what you've done and this seems really great but what I think is how to implement all that functionality with nodejs an redis!
and I hope I will do this in some period of time! Definitely i will do this)

Edit New Message html

I made a few formatting changes to the conversation views to better suit my app, but newly posted messages are still posting with the original formatting until the conversation is closed/reopened. Where can I modify newly pushed html data?

Laravel 5.4

Wondering if anyone got it working on 5.4 I managed to install it and seed but nothing shows up , and when I go to one of the routes it just sends me back to homepage. any info would help

Awesome Package!

I managed to troubleshoot the code! Clockwork! Awesome package.

Does it supports laravel 5.4

i have pusher installed with this version "pusher/pusher-php-server": "~2.6"

but it seems that packages doesn't feel it dunno why ,

so please i liked ur package the most , is there anyway to make it flies with 5.4

Laravel 5.2

You think about upgrading to version 5.2?

unexpected 'DJB' (T_STRING), expecting ']'

I get an error when I add DJB\Confer\ConferServiceProvider in config/app.
error :
Parse error: syntax error, unexpected 'DJB' (T_STRING), expecting ']' in C:\xampp\htdocs\app-chat\config\app.php on line 159

How to use it?

I know it is a really really bad question but how do I make it work on my page. I've tried many way but it doesn't work. I just need someone to guide me where to put all the code. I'm using Laravel 5.1 by the way.

License.md

Hi,

your README does not include any referenced License and a LICENSE.md is missing, too.

I want to use this package as base for a messaging system in a commercial project that uses Laravel 5.2 and Thruway as local WebsocketServer.

Get a null result from $channel_info in Confer.php file

There is a problem when I integrate this package into my project. When I created a new project, confer package worked perfectly but when I put into my working project I got this error. And it said that $channel_info was null and it could not get any user from $online_users.
screenshot_2

Why is there no channel to be got?
Does anybody know how to fix?

Error 500 in conversation controller on line 148

I get a 500 - with this error:
Illegal operator and value combination.
InvalidArgumentException in Builder.php line 457:
Illegal operator and value combination.
in Builder.php line 457
at Builder->where('id', '<', null)
at call_user_func_array(array(object(Builder), 'where'), array('id', '<', null)) in Builder.php line 526
at Builder->where('id', '<', null)
at call_user_func_array(array(object(Builder), 'where'), array('id', '<', null)) in Relation.php line 283
at Relation->__call('where', array('id', '<', null)) in ConversationController.php line 148
at HasMany->where('id', '<', null) in ConversationController.php line 148
at ConversationController->showMoreMessages(object(Conversation), object(Request))
at call_user_func_array(array(object(ConversationController), 'showMoreMessages'), array('conferconversation' => object(Conversation), object(Request))) in Controller.php line 246
at Controller->callAction('showMoreMessages', array('conferconversation' => object(Conversation), object(Request))) in ControllerDispatcher.php line 162
at ControllerDispatcher->call(object(ConversationController), object(Route), 'showMoreMessages') in ControllerDispatcher.php line 107
at ControllerDispatcher->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Authenticate.php line 47
at Authenticate->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 108
at ControllerDispatcher->callWithinStack(object(ConversationController), object(Route), object(Request), 'showMoreMessages') in ControllerDispatcher.php line 67
at ControllerDispatcher->dispatch(object(Route), object(Request), 'DJB\Confer\Http\Controllers\ConversationController', 'showMoreMessages') in Route.php line 204
at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
at Route->run(object(Request)) in Router.php line 701
at Router->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in Router.php line 703
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 670
at Router->dispatchToRoute(object(Request)) in Router.php line 628
at Router->dispatch(object(Request)) in Kernel.php line 214
at Kernel->Illuminate\Foundation\Http{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in VerifyCsrfToken.php line 43
at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 21
at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in ShareErrorsFromSession.php line 55
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in StartSession.php line 61
at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 36
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in EncryptCookies.php line 40
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in Kernel.php line 115
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 84
at Kernel->handle(object(Request)) in index.php line 53

Class ConferSeeder does not exist

I have followed the installation instruction yet when I run

php artisan migrate --seed

I received this error

[ReflectionException]
Class ConferSeeder does not exist

any ideas, help please?

XSS

Downloaded confer yesterday and got it installed after doing the demo. (Thanks for helping by email to set it up)

Presently you can send javascript and images into the channel and it will render them locally and with the other participants in the chat.

help wanted

Hi, how to differentiate the online user and offline user? please explain..

for mine automatically calling session request not working

thanks

Problem creating a new conversation

Im having some trouble when I try to "create" a new conversation with a user, im getting this 404 error: http://my-url/confer/user/2/conversation/NaN/info and a 500 Internal Server Error http://my-url/confer/conversation/find/user/1: ErrorException in Conversation.php line 87:
array_intersect(): Argument #1 is not an array

It seems as if the Conversations are not being created in the database and I can only chat in the global conversation.

Can you please help me?

Thank you for your time

Using instructions

Hi, saw your demo and it really looks like what I need
I followed your intsallations steps, but faced one difficulty
After installation I really have no idea how to use your chat system, how to implement it to my application
Can you provide any simple instructions, how to set up a page with your chat system working on it

By the way, I'm using laravel 5.4, maybe this took some effect on intallation process

ErrorException in Conversation.php line 88: array_intersect(): Argument #1 is not an array

Hello,

I have successfully installed the package and configured it according to the instructions you have provided, however, whenever I try to initiate a conversation with another person who's available online, I get no response/ reaction from the click. On checking the console I am getting the following error:

in Conversation.php line 88
at HandleExceptions->handleError('2', 'array_intersect(): Argument #1 is not an array', 'C:\xampp\htdocs\HRM\vendor\djb\confer\src\Conversation.php', '88', array('user' => object(User), 'other_user' => object(User), 'user_participates' => object(Collection), 'other_user_partcipates' => object(Collection), 'static' => object(Conversation)))
at array_intersect(object(Collection), object(Collection)) in Conversation.php line 88
at Conversation::findOrCreateBetween(object(User), object(User)) in ConversationController.php line 127
at ConversationController->find(object(User))
at call_user_func_array(array(object(ConversationController), 'find'), array('conferuser' => object(User))) in Controller.php line 256
at Controller->callAction('find', array('conferuser' => object(User))) in ControllerDispatcher.php line 164
at ControllerDispatcher->call(object(ConversationController), object(Route), 'find') in ControllerDispatcher.php line 112
at ControllerDispatcher->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Authenticate.php line 45
at Authenticate->handle(object(Request), object(Closure))
at call_user_func_array(array(object(Authenticate), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 114
at ControllerDispatcher->callWithinStack(object(ConversationController), object(Route), object(Request), 'find') in ControllerDispatcher.php line 69
at ControllerDispatcher->dispatch(object(Route), object(Request), 'DJB\Confer\Http\Controllers\ConversationController', 'find') in Route.php line 203
at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
at Route->run(object(Request)) in Router.php line 708
at Router->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Router.php line 710
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 675
at Router->dispatchToRoute(object(Request)) in Router.php line 635
at Router->dispatch(object(Request)) in Kernel.php line 236
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 50
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 62
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 122
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
at Kernel->handle(object(Request)) in index.php line 54

which then leads to the following error visible in the console window:

in Router.php line 960
at Router->Illuminate\Routing\{closure}('NaN', object(Route))
at call_user_func(object(Closure), 'NaN', object(Route)) in Router.php line 784
at Router->performBinding('conferconversation', 'NaN', object(Route)) in Router.php line 767
at Router->substituteBindings(object(Route)) in Router.php line 754
at Router->findRoute(object(Request)) in Router.php line 659
at Router->dispatchToRoute(object(Request)) in Router.php line 635
at Router->dispatch(object(Request)) in Kernel.php line 236
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 50
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 62
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 122
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
at Kernel->handle(object(Request)) in index.php line 54

Disable chat with some user

Is there an option to prevent some user to message you. For example I was friend with a user, but i have decided to block him, so i want no longer to receive messages from him ?

Message notification

Currently you do not get a new message notification unless you have previously sent a message or opened a conversation with a user.

@hallmichael great to hear it wasn't too bad for the conversion to 5.1, appreciate the work you've done there!

@hallmichael great to hear it wasn't too bad for the conversion to 5.1, appreciate the work you've done there!

In future I think I could look at separating the code out in such a way that we can have custom themes easily implemented. Depending on the situation as well, I will likely create a new branch or repository for a version of confer which uses Redis + socket.js for pushing instead of pusher as it is much faster and has no third party service reliance.

Originally posted by @dazzz1er in #17 (comment)

Hello @dazzz1er. Please tell me if there is a working version of a confer with the implementation of Redis + socket.js

Class Model not found

Can you helpe me I'v got an error when I did php artisan migrate --seed
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Model' not found

How can I solve that ?

Laravel 5.5

Hello there,
When it comes to Laravel 5.5, the compatible update.

Good work.

composer require djb/confer : does not work

Looks like you changed the name can you confirm ?

[InvalidArgumentException]
Could not find package djb/confer at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability

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.