Code Monkey home page Code Monkey logo

Comments (9)

metalsoft10 avatar metalsoft10 commented on September 1, 2024
  @chat_list ||= Chat::Conversation.joins(:users).group("chat_sessions.conversation_id").select(:id, group_concat).merge(current_user.conversations).order(created_at: :desc)

i dont know what error
but when i removed this line error gone but no chat shows

from chat.

npezza93 avatar npezza93 commented on September 1, 2024

Looking at your screenshot, it appears you are running chat 0.2.0. Do you mind updating to 1.0.0 and see if that fixes the issue? I also saw your other issue, and I'll update the gemspec with haml as a dependency.

from chat.

metalsoft10 avatar metalsoft10 commented on September 1, 2024

@npezza93 thank you i will try right now

from chat.

metalsoft10 avatar metalsoft10 commented on September 1, 2024

thank you almost work i will try from clean app again
its work but no send and receive MSG
just create the conversation may be my fault

from chat.

metalsoft10 avatar metalsoft10 commented on September 1, 2024

Cannot render console from ' MY IP '! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Started GET "/cable/"[non-WebSocket] for 156.216.141.114 at 2017-07-24 22:06:03 +0000
Failed to upgrade to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Keep-Alive, HTTP_UPGRADE: )
Finished "/cable/"[non-WebSocket] for 156.216.141.114 at 2017-07-24 22:06:03 +0000

must refresh to show msg

from chat.

npezza93 avatar npezza93 commented on September 1, 2024

That is not an issue caused by this gem. That is an ActionCable config issue. Make sure your cable.yml is setup properly.

from chat.

metalsoft10 avatar metalsoft10 commented on September 1, 2024

Failed to upgrade to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Keep-Alive, HTTP_UPGRADE: )
needed this line at
application.rb

config.action_cable.allowed_request_origins = [/http:///, /https:///]
now i have an other error
WebSocket connection to 'ws://localhost:3000/cable' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

i put this line
config.action_cable.url = 'ws://localhost:3000/cable'
not worked
my app is development
cable.yml
development:
adapter: async
using Clearance as sign in
Chat.setup do |config|

config.signed_in = :signed_in?

config.logged_in_check = :require_login

config.user_avatar = :avatar

config.perform_method = :perform_now
end

from chat.

npezza93 avatar npezza93 commented on September 1, 2024

That is also not an issue with this gem. Please use either StackOverflow for help or refer to the dummy app in the test dir as reference on how to setup ActionCable.

from chat.

metalsoft10 avatar metalsoft10 commented on September 1, 2024

ok thank you all i want was make it as help for other if they get same errors

from chat.

Related Issues (6)

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.