<FromGitter>
<robacarp> thanks for writing about Amber and crystal!
<FromGitter>
<robacarp> FYI the deploy sub command is removed as of the next release
marenz has quit [Ping timeout: 264 seconds]
snsei_ has joined #amber
<FromGitter>
<sfreiberg> Hey all. Right now I'm trying to add a time field with fieldname:time and the migration is created correctly but the model has a String type.
<prutheus>
@faustinoaq are you there?
<prutheus>
Someone here who can help me with a websocket related question?
<FromGitter>
<Thellior> @set Can't infer the type of instance variable '@teacher' of TeacherController" means if i remember correctly that you did not state the variable to the class ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ You need to specify it before you can use it. The downside of this is that crystal compiler is not smart enough to see that the before_action is run before the class method call. So you have to give it a type
<FromGitter>
... Client | Nil. This gives issue when you want to use it because you need a if statement for it to check nil or not_nil?. So you can better define a method find_client and use it directly in your controller method instead of doing it like rails with before_action. I remember this issue from long time ago so i can be wrong but if i ... [https://gitter.im/amberframework/amber?at=5b351ef2a288503b3de7829a]
<prutheus>
Someone here who can help me with a websocket related question?
<FromGitter>
<Thellior> You links generate 404
<prutheus>
I want to use 2 channels in one websocket, how can I achieve that? By writing n times 'channel "name", NameChannel' at my socket where n equals the amount of channels, it is not really working? you need some code or please someone need to help me
<FromGitter>
<Thellior> I don't have exp on this matter
<prutheus>
yeah, not enought info about that
<FromGitter>
<Thellior> chat:* right
<FromGitter>
<Thellior> And than you can use it in your javascript
<prutheus>
my problem is, that when i conenct my channels via the method i just mentioned, doesnt matter which channel i subscribe, the connection gets only established with the first channel
<prutheus>
no, not mulitple chat-rooms, but one channel called 'data', one called 'calc'
<prutheus>
both has own Channel classes
<FromGitter>
<Thellior> I think you cant
<FromGitter>
<Thellior> I think you should have 2 websockets for that
<prutheus>
why not, are you sure?
<FromGitter>
<Thellior> Why do you want to have one websocket for it?\
<prutheus>
i dont know, was just an idea, you think it wont work?
<prutheus>
so i can do communication:data and communication:calc for example to use 2 channels in 1 class right?
<FromGitter>
<Thellior> I think you should separate concerns. You create 2 channels so basically you are saying that they are different from each other
<FromGitter>
<Thellior> If i understand the docs correctly.
<FromGitter>
<Thellior> Yes than you can do it like that
<prutheus>
okay you helped me a lot, thanks
<FromGitter>
<Thellior> No problem
<FromGitter>
<Thellior> Sometimes it's good to go back to the root of the issue instead of a solution :)
<FromGitter>
<Thellior> Goodluck :)
wontruefree has quit [Quit: bye]
wontruefree has joined #amber
snsei_ has quit [Ping timeout: 260 seconds]
<prutheus>
@faustinoaq are you there?
snsei_ has joined #amber
wontruefree has quit [Quit: bye]
wontruefree has joined #amber
snsei_ has quit [Remote host closed the connection]
<prutheus>
does someone know where faustinoaq is since the last 2 days?
prutheus has quit [Quit: Page closed]
<robacarp>
his schedule is kind of erratic, since he is a full time student
snsei_ has joined #amber
snsei_ has quit [Ping timeout: 265 seconds]
wontruefree has quit [Quit: this is not the client you are looking for]