0:00:24
what is going on guys welcome back to
0:00:26
another session of buildbrick and fix
0:00:28
brought to you by the rule coders
0:00:35
hope you have been very well
0:00:44
in this session we're going to be
0:00:46
covering how to um
0:00:50
insert our connection id into dynamodb
0:00:54
when our websocket has been connected
0:01:01
a client has been connected to our
0:01:03
websocket they'll be given a um
0:01:09
connection id so that connection i do
0:01:11
will be stored in a dynamodb all right
0:01:17
so just to give a bit of a recap as well
0:01:25
websocket and also trigger
0:01:29
back to the client which was fantastic
0:01:35
just as in for the testing purposes
0:01:42
website called i think pi socket if i if
0:01:46
i remember correctly
0:01:50
we managed to do that so that was up and
0:01:54
okay so i'll just play the
0:02:01
just also a really huge um
0:02:04
credit to get there one of our um
0:02:08
regular viewers whom
0:02:11
crack the problem and and as soon as the
0:02:14
problem was tracked it uh
0:02:16
it was fixed and that is how we came to
0:02:25
trigger the lambda and then in return
0:02:29
pass a message all right so i'll just um
0:02:33
i'll just play the acknowledgement
0:02:36
and then we can get down
0:02:39
to the fun part which is coding so
0:02:44
i begin today by acknowledging the
0:02:46
traditional custodians of the land on
0:02:48
which we gather today and pay my
0:02:50
respects to the elders past present and
0:02:53
future i extend their respect to
0:02:55
aboriginal and torres strait islander
0:03:02
fantastic guys so that is all done which
0:03:08
what i'm going to do now is share my
0:03:10
screen and we will
0:03:15
get this rolling for us oh here is tori
0:03:25
tori i'm gonna add you on the screen so
0:03:35
okay so he's still i guess setting up
0:03:38
his camera or something like something
0:03:41
yeah how's it going
0:03:45
very good murray uh welcome but we can't
0:03:51
yeah i can't see me either that's weird
0:03:56
you probably wanna um
0:03:58
kind of yeah now i can see it
0:04:08
there's a bit of a background noise but
0:04:10
it's kind of bearable
0:04:12
okay uh just let me know because it's
0:04:14
raining like really really heavily right
0:04:17
right right i say i see that makes sense
0:04:20
cool no problem at all by the way it
0:04:23
seems you had a fresh air car
0:04:27
uh yeah i didn't style it for the show
0:04:30
but i did get a haircut
0:04:35
thanks man appreciate it i have my like
0:04:38
interview next week so i figured you
0:04:40
should get a haircut
0:04:44
that's that's what it'll look it'll look
0:04:46
better than it looks now though
0:04:51
you're still looking sharp
0:05:00
i'm working on that tarp man
0:05:06
right so um i was just giving a bit of a
0:05:10
recap what we managed to do last time
0:05:12
and what we are going to do today and i
0:05:16
acknowledgement of the country so that
0:05:23
just to let you guys as well know that
0:05:27
today what we're going to be doing
0:05:38
webs okay we wanna be able to store the
0:05:41
connection id in dynamodb
0:05:44
so that is our plan for today
0:05:49
okay um did you manage to get your sam
0:05:54
because uh i was hoping that if you
0:06:02
okay i will you know i would love to
0:06:05
drive all the action tonight
0:06:20
welcome man good to see you
0:06:34
and how people was really tasty
0:06:53
i'll share my screen yeah
0:07:05
yes she didn't get dev that was well
0:07:11
dinner dinner i am free man
0:07:14
yeah no no it's not free he works for it
0:07:19
okay i'm gonna change your screen
0:07:28
did you guys hear that yeah
0:07:30
yeah that's loud man i think it's really
0:07:34
yeah yeah there's uh there's a quite a
0:07:37
storm right above me right now
0:07:41
yeah i just saw the the fun day in the
0:07:44
background as well
0:07:48
yeah no special effects needed
0:07:52
yeah that's all natural
0:07:55
coming at you from bali
0:07:59
what color looks kind of good here that
0:08:02
that won't make the viewers angry
0:08:05
um i would say it's like the regular
0:08:11
i would say that would be a question for
0:08:23
i'll sell your answers to the problems
0:08:25
for kebabs all right um
0:08:31
we're not gonna learn
0:08:33
anything get deaf so
0:08:35
it's good that we struggle through and
0:08:38
learning the hard way but yeah
0:08:44
i'll get probably bankrupt in one night
0:09:05
no it was not a 10 bucks one no way no
0:09:09
you it wasn't that cheap
0:09:20
we have standards isn't it
0:09:23
okay yeah continue um
0:09:26
so i'm just running the build
0:09:29
hang on have you have you got the latest
0:09:34
because i just pushed push through
0:09:41
get pulled oh yeah there is there is a
0:09:44
yeah all right i'll make you happy i'll
0:09:47
i'll run it in the command line
0:10:10
and so so what are we doing tonight zane
0:10:14
so we are just making sure that this
0:10:17
runs and we still get message from
0:10:22
and then we are gonna go ahead and um
0:10:30
probably on connect
0:10:36
that inserts a connection id into
0:10:44
yeah so let's just wait for it to build
0:10:53
i can tell it's pouring down there
0:11:02
am i not on the right branch
0:11:25
what should i do next while i'm waiting
0:11:32
that needs to have been
0:11:34
complete and then once that completes we
0:11:40
actually hang on we don't even have to
0:11:43
do that we can just test the url
0:11:47
in the website called pi sockets
0:11:50
something oh hang on
0:11:52
we can probably speed this up um i'll
0:12:26
okay i'll give you the
0:12:30
and we can take it from there
0:12:38
in the chat use brave browser
0:12:44
that's the first one i've heard
0:12:49
all right that build finish anyways
0:12:55
mr eye creator of javascript made brave
0:12:58
browser like couple years ago actually
0:13:03
it's chrome it's you know it's it's
0:13:06
chromium engine whatever and
0:13:10
so it's just like chrome except it's
0:13:15
privacy first like ad blocking built-in
0:13:20
and it's so much better
0:13:22
so much faster than chrome yeah
0:13:27
and that's exactly what we want isn't it
0:13:36
go ahead and deploy that which is sam
0:13:46
we want to do a guided one
0:13:49
and then the profile
0:13:52
whatever your profile name is
0:14:04
cool so this will give you some options
0:14:46
didn't i give you an admin access
0:14:50
i'm pretty sure i gave you the admin
0:14:54
why is he not doing it then
0:14:59
some access for cloud formation creating
0:15:05
i'm pretty sure it gives you the
0:15:08
admin access so that should go
0:15:12
unless i'm messed up
0:15:17
if for some weird reason i copied over
0:15:19
the key incorrectly
0:15:26
right you probably want to
0:15:28
actually know because if you
0:15:31
if you copy of the king correctly then
0:15:34
this wouldn't you wouldn't even get this
0:15:38
so that can't be the problem
0:15:44
it's not me it's you
0:15:53
just trying to f3 f
0:16:01
and now comes the magic part which is my
0:16:18
okay cool so now i'm gonna give you
0:16:23
you must already have it
0:16:26
yeah give me all the powers man
0:16:30
i'm gonna be trying not to misuse it
0:16:41
misuse comes deactivating
0:16:50
right okay yeah i didn't give you that
0:16:53
one that's my fault
0:16:55
i had to check that
0:16:57
do not trust me as an admin which is
0:17:01
probably very reasonable okay now i am
0:17:04
actually trusting you so do not lose
0:17:08
so we're all good i'll run this again
0:17:21
yes to everything yeah
0:17:36
let's see if it does this
0:17:38
yeah we just not do i we just not need
0:17:41
the guided deployment if we do that
0:17:45
i reckon it's good to have guided
0:17:47
because if we wanted yeah if we want to
0:17:50
change the stack name
0:17:53
we can do that there
0:17:59
because now what's going to happen that
0:18:04
my stack for your stack because and name
0:18:10
but if we if you wanted to deploy your
0:18:14
own stack then you would probably
0:18:16
name the stack and then
0:18:19
guided deployment and then
0:18:22
deploys separately
0:18:34
cool so it's uploading it which is
0:18:42
file with same data or exist skipping
0:18:48
oh file with the same data already exist
0:18:52
okay cool so it's not
0:18:54
it's not uploading it
0:19:31
deploy this chainsaw yes
0:19:38
hey cute jesse welcome
0:19:48
so he's just deploying everything on
0:19:51
cloud formation now
0:20:05
what do you think of this analogy zane
0:20:11
and i said well it's like you know
0:20:13
an infrastructure tool
0:20:16
and then i said have you ever watched
0:20:17
the movie fantasia
0:20:23
have you ever watched the movie fantasia
0:20:25
i don't know maybe i'm dating myself
0:20:29
okay forget about the analogy it won't
0:20:36
well if i say yes i have
0:20:39
then i would say it's like when mickey
0:20:42
mouse has all these mops and buckets and
0:20:45
he just orchestrates them with his
0:20:48
his fingers it's magic okay but you
0:20:51
wouldn't get it because
0:20:53
i didn't watch it yeah
0:20:57
okay cool that is done so if you wanna
0:21:07
i want you to have all this hands-on
0:21:09
practice as well okay
0:21:13
management console
0:21:32
aws management console and google would
0:21:38
okay cool in that way as well it works
0:22:05
oh your account id has to be those um
0:22:13
yeah um i should have kept track of that
0:22:53
what getting trolled
0:23:00
oh why i did not save this the account
0:23:04
id that's silly okay i will send you the
0:23:14
i'm throwing it in swag
0:23:16
yes i'll throw in this black
0:23:24
oh wait that's not good let's stop the
0:23:30
yeah it's always good to
0:23:35
i know what's in that slash villain
0:23:39
i was like wait wait wait yep
0:23:44
yep why did i learn my lovely
0:23:48
see the things learns in the hard way
0:23:52
are never forgotten never ever
0:23:58
like i knew it that was one of my
0:24:00
biggest fears of live streaming is like
0:24:03
this is gonna happen
0:24:13
and i think in live streaming you need
0:24:16
to be really careful as in
0:24:19
what you share and what you should do on
0:24:21
because once on the internet always on
0:24:34
i'm just saving this on the side yeah
0:25:05
okay i'll play with that later all right
0:25:11
coming up would you like me to do
0:25:27
a thong sniff for charity event
0:25:41
okay he's gonna start to call me now
0:25:45
he's pulling in people into the chat too
0:25:48
which is just dangerous for us yeah
0:25:58
what would you like me to do next man
0:26:01
um can you please share your screen
0:26:03
first oh right right right so
0:26:06
we can have a look exactly where you are
0:26:10
yeah at the moment i can
0:26:12
just see a colorful background with your
0:26:17
wall filter i'll show you give me one
0:26:19
second let me let me just
0:26:23
probably get dev yeah
0:26:26
i do not want slack open whatsoever
0:26:29
there you go all right
0:26:42
okay um go to your cloud formation
0:26:52
you could have clicked on the cloud
0:26:58
where is it where is that
0:27:00
oh no no i thought the cloud watch was
0:27:03
transformation hey man we're on the same
0:27:08
i'm just kidding i'm just kidding
0:27:13
i'm getting i'm getting destroyed right
0:27:18
no you don't know he's on to me
0:27:23
he's making fun of where i live which is
0:27:26
very close to home you know that hits
0:27:29
close to home okay um go to stacks on
0:27:35
and this should be a stack called
0:27:38
apis um okay you need to change your
0:27:41
region so from north virginia to sydney
0:27:48
yeah i just see two stacks here
0:28:04
there you go and you are and you want to
0:28:06
click the first one
0:28:09
and then look for as in go to resources
0:28:17
look for scrambler
0:28:44
okay there's everything related
0:28:47
um so if you just want to
0:28:49
look for web socket api or something
0:28:53
like that instead of the first one
0:28:56
one click on that one and we want to go
0:29:05
i'll log into aws that's
0:29:07
that's a record even
0:29:10
first he's on tutorials on to you
0:29:29
copy the first url um
0:29:33
i meant oh this one
0:29:40
you want me to go to the pi socket yeah
0:29:45
delete that yeah connect
0:29:47
it should connect and type in the action
0:29:59
yeah that was right
0:30:03
okay and press send
0:30:07
wow okay now what we need to do
0:30:11
remove the res and the second received
0:30:14
so go back in the lambda
0:30:25
return as in from the line 20
0:30:29
just remove this yeah
0:30:32
as in try to remove the body only
0:30:37
then we can see if it still gives us
0:30:46
there we go all right cool yeah now save
0:30:50
it and build it and then deploy it
0:30:59
saved it i did save it okay
0:31:19
when that's done we can deposit i gotta
0:31:21
i gotta look at this and see if there's
0:31:24
something i can do to speed this up
0:31:31
i just haven't had a lot of free time
0:31:32
recently i keep meaning to like go and
0:31:37
i feel you man yeah i
0:31:39
feel you because yeah i've had a lot of
0:31:42
things going on and even though people
0:31:46
about the new streaming
0:31:51
i did a bit of research but not in
0:31:53
really detailed um so that just got a
0:32:00
let's work on it and hopefully
0:32:05
when we get a chance to research on it a
0:32:08
little bit more then
0:32:13
decide on which one we want to
0:32:20
it would be good to hear from gekko what
0:32:25
would be good as well because
0:32:29
i guess there's not obs right like no
0:32:37
consumes a lot of resources and plus the
0:32:40
lag is 20 seconds which is way too much
0:32:47
i i guess like when i get that when i
0:32:50
was running obs like on
0:32:53
friday on the stream
0:32:55
because i was using the obs like virtual
0:32:57
cam that's how i had the the background
0:33:01
and then i opened vs code and stream
0:33:06
just like choked my because i'm running
0:33:08
on a laptop so it just it just like
0:33:11
chewed up all my resources
0:33:14
um i think yeah def the problem would be
0:33:18
that we are trying to
0:33:21
share multiple screens because we are
0:33:26
like coding so we for that purpose we
0:33:30
actually used obs ninja and i think
0:33:33
that's where the problem is because
0:33:36
first of all it's going to obvious ninja
0:33:41
going to switch to stream and that's
0:33:44
creating a bit of a lot of
0:33:48
we uh don't do you have stream yard like
0:33:54
basic or standard or something from
0:33:57
stream yard now because of
0:34:07
it doesn't really on
0:34:09
does it offer a lot of say
0:34:24
yeah i know that we can do that get that
0:34:31
does that also offer all the alerts and
0:34:37
look and everything
0:34:39
because i researched on in and it
0:34:42
doesn't really make the
0:34:44
stream look a bit fancier as the
0:34:51
yeah see there's there's
0:34:54
there's too many competing financial
0:34:56
concerns here that's the problem we got
0:35:01
the streaming service
0:35:10
no no we need some income
0:35:14
streaming first as well and then
0:35:17
i'm happy to consider the kebabs as well
0:35:22
yeah i mean and like we gotta have a
0:35:25
bob's in case you run into another major
0:35:36
because every gag dev actually
0:35:42
on that on that business
0:35:47
speed up the projects but
0:35:51
we won't really learn much
0:35:54
because the active is actually solving
0:36:01
because all right up there
0:36:04
yeah there we go so um go
0:36:09
uh yeah you didn't you don't have to do
0:36:14
yeah um do you want to connect first
0:36:18
yeah it looks like it's still connected
0:36:23
reestablish the connection
0:36:32
okay then in that case we need to remove
0:36:36
so go back into the thing
0:36:42
we probably have to
0:36:54
you know where it says
0:37:03
probably get rid of that and
0:37:06
just probably do a return in front of
0:37:14
do a return in front of the lane no
0:37:17
that's not gonna work dude
0:37:20
yeah cause then it then the
0:37:22
the code will just stop at the return
0:37:27
it won't it won't hit the await yeah
0:37:29
because like you'll just have dead code
0:37:32
vs code is graying it out
0:37:45
oh you mean return it like this
0:37:56
and see what it does now
0:38:04
same process again
0:38:07
you need to do you need to always return
0:38:15
i think yes because how else are we
0:38:21
send this message through
0:38:26
this post the connection hits that
0:38:34
i mean you could probably just making
0:38:36
this up like i usually do make up things
0:38:41
but i thought the post i thought the
0:38:42
post the connection
0:38:47
this end point or something and then it
0:38:52
um posts a message back to the client
0:38:58
like the i thought the lambda itself
0:39:04
i didn't get you do you want to
0:39:11
this connection url
0:39:17
thought i read that
0:39:19
in the docs that um
0:39:30
management api here from aws
0:39:33
i thought this post to connection
0:39:38
basically under the hood
0:39:42
back to the client through
0:39:54
okay so like the lambda itself
0:39:59
obviously doesn't return the message
0:40:01
back to the client
0:40:06
with this whatever
0:40:07
is like under the hood in here i wish i
0:40:10
could look at the code but
0:40:14
you know you're sending the connection
0:40:20
essentially this message plus
0:40:24
what else are you sending
0:40:27
what's the data the data is send send is
0:40:37
wait what i'm not i just lost
0:40:41
what are you playing
0:40:42
oh okay yeah you're just sending this
0:40:49
like obviously this is sending the
0:40:51
message right to the client back to the
0:40:53
client because it's taking in that
0:40:55
connection id which is like the client's
0:40:57
connection id it's like the same thing
0:40:59
you'll be saving in dynamodb
0:41:02
correct and then um i guess the data is
0:41:05
is the message here that
0:41:13
this thing is i don't know we could look
0:41:15
at the docs if we're curious but
0:41:20
did i just build it no no no you must be
0:41:24
right there we can definitely
0:41:26
crying that way as well
0:41:30
what's the point of use website is just
0:41:38
right um that so i think this was just
0:41:44
if we can get the websocket api like
0:41:46
just kind of working and then later on
0:41:50
and correct me if i'm wrong zane is save
0:41:54
save the connections inside of dynamodb
0:41:57
so we'll have this connection id in
0:41:59
dynamodb and table and then that will
0:42:07
well be based on the board right so
0:42:09
who's connected to which board
0:42:12
and then the websockets um
0:42:16
everybody who's on that board is
0:42:20
um to the websockets and so
0:42:24
one person sends a message should
0:42:26
broadcast everyone else or something
0:42:27
yeah so so in there inside this um
0:42:31
default or send message lambda
0:42:36
when an event like
0:42:40
sends a message to this lambda
0:42:42
it should grab like it should probably
0:42:44
take all the connection ids from
0:42:48
and then send the message back to the
0:42:51
lambda kind of like probably looping
0:42:52
over this or something is my guess
0:42:56
so that every client that's connected to
0:42:57
that table will receive the updated like
0:43:04
you know data which
0:43:06
i'm assuming is like the
0:43:17
what is he talking about
0:43:19
okay i think what you're trying to say
0:43:25
the purpose of this is to demonstrate
0:43:30
that we are actually getting a message
0:43:33
back from from the websocket server
0:43:37
oh which is correct and um
0:43:42
basically jagdev is
0:43:45
saying they even i have the advantage
0:43:48
that i've worked with websockets before
0:43:50
so i kind of understand what will happen
0:43:56
i guess the purpose of
0:43:59
doing this particular task was to
0:44:10
that isn't present
0:44:19
a lamb base is trying to be triggered
0:44:23
but it's not it's not present
0:44:25
it should come here as
0:44:28
saying that okay that there's
0:44:34
i can't help you so basically is
0:45:03
lambda is therefore
0:45:12
yes i was about to come to that point
0:45:16
i'm coming step by step here now so
0:45:19
what we did just now is just to as in
0:45:25
give the response back to the user if
0:45:30
type in so if they're trying to trigger
0:45:33
something that doesn't exist
0:45:39
yes that's where we are
0:45:45
that's our roots yeah i'm getting i'm
0:45:48
i'm getting there i wish
0:45:52
i was as fast as you but i'm still i
0:45:55
still have a long way to go
0:45:57
okay i'm getting there i'm getting there
0:46:01
it's brutal out here it's brutal
0:46:07
welcome to real life
0:46:18
when you simply get roasted and
0:46:21
then if your explanation
0:46:24
skills are not on point which i'm still
0:46:26
working on this is what happens
0:46:29
from the seniors to the juniors
0:46:32
we got a great concept for a show that
0:46:34
would be really funny based on this show
0:46:37
which is basically like
0:46:39
every week or i mean every month you
0:46:42
could have one show or whatever and then
0:46:45
has to do like some type of challenge in
0:46:49
and then everybody else just roasts them
0:46:59
i was going to do this with my friends
0:47:01
and call it like javascript hot seat or
0:47:08
okay right right right
0:47:15
that makes sense a lot again i think
0:47:17
gekko is talking about every single
0:47:19
interview i've done so far
0:47:26
coming back to the
0:47:30
websockets would work exactly
0:47:35
explained but this is
0:47:39
would work in terms of
0:47:46
and we're going to be introducing the
0:47:49
logic of inserting the connection
0:47:52
id into the diamond db in the on
0:47:57
connects lambda so
0:48:03
does that make sense now kick diff
0:48:06
i really have to practice to be concise
0:48:11
really important for me
0:48:15
so um i tested that and we got an
0:48:17
internal server error i mean it sent the
0:48:21
message okay so here i'll
0:48:24
um it did send the message but then we
0:48:26
got back an internal uh
0:48:32
maybe the two received
0:48:37
are supposed to happen
0:48:40
or not do we need to send back anything
0:48:44
i mean from the lambda
0:48:49
error handling yes because we want to
0:48:52
know what was that okay
0:49:00
wrap your coat and try catch yeah
0:49:02
um that makes total sense
0:49:06
return the body being an error if
0:49:14
where's it gonna go honestly is it gonna
0:49:16
go back to the websocket no
0:49:25
are you sure because
0:49:27
the client is an ex
0:49:31
because it's like through the websocket
0:49:36
who's going to see the
0:49:39
it will go back to the browser error
0:49:43
one from center one from the turn
0:49:59
so okay what should i do
0:50:09
um probably um try and remove the return
0:50:16
it's already sending it so
0:50:18
uh i think that might be causing a
0:50:20
problem you want me to deploy it like
0:50:28
let's try it if it works
0:50:40
did you build it first
0:50:46
you need to build it if um yeah there
0:50:56
all right i'm gonna
0:51:02
yeah cool async function
0:51:07
return the promise the promise would be
0:51:21
on async that's the callback yep um
0:51:33
what are we looking for now i was just
0:51:36
curious about like um
0:51:42
if you always need to like return
0:51:44
something from a lambda
0:51:46
okay right correct
0:51:48
like if you could return
0:51:51
empty for example like return nothing
0:51:54
um would it would it give you like an
0:51:57
internal server error
0:52:03
but whatever it's not important i can
0:52:05
learn it be honest
0:52:07
i don't think you should
0:52:10
unless you request it and
0:52:14
give it what is not expecting
0:52:17
if that makes sense
0:52:19
i don't know i could be wrong
0:52:28
maybe this is done
0:52:34
the turn on the fine is the same thing
0:52:41
you don't always need to return
0:52:42
something okay thanks gekko
0:52:45
what happens if you don't have any type
0:52:47
of return because like will that shut
0:52:50
down your lambda after it's done
0:52:53
like once the in this example the
0:53:08
yeah yeah that's a really good idea i
0:53:12
i'm learning myself
0:53:16
let me let me run this
0:53:19
uh what i was trying to ask is
0:53:23
if we have no return like in this
0:53:24
example we have no return statement
0:53:28
um will this will this lambda just shut
0:53:37
basically you've got your answer
0:53:40
you can tell straight away in cloud
0:53:44
he's saying either way just just try
0:53:54
yay tory's flying through that
0:53:58
deployment as well
0:54:03
it will show in your billing
0:54:05
milliseconds right
0:54:15
and then you find out this lambda is
0:54:17
being open for like 15 minutes
0:54:28
because there's no return statement or
0:54:33
let's check what it does
0:54:35
i'm curious myself
0:54:39
yeah right what's that what's the
0:54:41
default timeout for a lambda is it is it
0:54:45
it's usually three seconds okay
0:54:48
they got they give you guard rails first
0:54:54
the bumper alley there you go
0:55:00
some things not though like
0:55:02
with you can like the
0:55:08
like what did they call it concurrency
0:55:10
for the lambdas is like a thousand
0:55:14
so that means you can spin up a thousand
0:55:16
lambdas that all at once
0:55:19
which is like that's a lot for me
0:55:24
i don't have any users
0:55:37
how would you do that by mistake um
0:55:40
i've heard other people do that i've
0:55:42
read articles like where people were
0:55:48
recursive call or something weird um or
0:55:51
maybe they were doing like um
0:56:01
and they just like didn't
0:56:07
the way they thought it was actually
0:56:09
gonna work and then
0:56:11
things went badly for them
0:56:14
and then they didn't have enough money
0:56:18
actually after that
0:56:23
and you learned yeah i hope i don't
0:56:26
i want to pay a huge bill
0:56:31
i've actually learned it in that way
0:56:37
when i was learning code build my build
0:56:39
came up to probably 200 bucks
0:56:44
wow really that's that's
0:56:47
i would i would be very sad
0:56:51
well still getting an internal server
0:57:01
so one is by send uh actually
0:57:06
go at the top um at uh
0:57:14
you know where we are doing
0:57:17
the send in the guest hockey context
0:57:29
so we are returning there
0:57:37
you're returning this function
0:57:45
and then you're but then you're
0:57:46
executing this function down here
0:58:03
that comes to that one
0:58:07
and then what you're doing is
0:58:09
it's executing it over here
0:58:19
let's get rid of the
0:58:29
the whole line possibly
0:58:33
but then you won't have a send
0:58:38
because what's send is just
0:58:43
ah okay yeah yeah yeah true true true
0:58:46
because zen is actually storing
0:58:48
i was return from the function
0:58:53
yeah so this is this return is
0:58:56
returning an endpoint connection id but
0:58:59
really you're only just using the send
0:59:02
which is then taking the
0:59:06
taking in this parameter or this
0:59:11
which is uh this message
0:59:15
and it appears it's only executing at
0:59:20
i don't know why there's two received
0:59:23
in any of the documentation was that the
0:59:25
case where they would
0:59:28
get back to received messages or
0:59:30
something today i'm
0:59:32
gonna check where did i get this
0:59:38
because this is what happens if you
0:59:41
don't understand it properly
0:59:45
you just want to code code code without
0:59:51
this is getting executed here
1:00:06
okay cool so from the blog that i've
1:00:09
gotten because he's testing it in
1:00:15
terminal he's actually getting
1:00:18
the same thing but i'm going to also
1:00:21
give give it a shot
1:00:28
terminal i don't i don't have i don't
1:00:30
have ws cat installed
1:00:32
all right okay see if you can give me
1:00:44
tested and see if that's the case with
1:00:46
me as well there you go sent in the
1:00:48
private chat sure thank you
1:00:50
objective is asking what did we what did
1:00:56
i guess he's asking both of us
1:01:06
open the aws management console
1:01:16
okay i'm just trying to test that
1:01:34
all right cool i'll just
1:01:37
on that a bit and um
1:01:40
fix this hopefully
1:01:43
shouldn't be a big one
1:01:47
you want me to throw out these changes
1:01:57
and um can i see your
1:02:04
i just want to check
1:02:07
so if you type in get status
1:02:11
just want to check in which branch
1:02:13
you're in okay cool it's
1:02:15
websocket integration cool
1:02:18
so do you do you want me are you are you
1:02:21
well i guess next time
1:02:23
do you want me to like redeploy what we
1:02:32
if you can just uh push this code on
1:02:36
there you want me to push this up
1:02:40
that's what we do as in
1:02:47
even if it's broken we have to oh we
1:02:49
want to push it on but don't
1:03:06
but but then you want to just change the
1:03:12
you want me to you want me to update the
1:03:17
you should already be there
1:03:21
yeah it's already there don't worry
1:03:24
about it yeah if you can just
1:03:28
go to that one and do a plus on
1:03:39
yeah and now just basically comment it
1:03:52
commit name i don't even know what we
1:03:58
removed return statement
1:04:09
good happy yeah yeah
1:04:21
is my origin set up
1:04:26
i don't know i don't know
1:04:48
you're becoming the news this is
1:04:59
would you like to create a fork this is
1:05:05
you don't have to what did you say
1:05:09
you don't have permissions
1:05:11
hang on did i not add you in the reaper
1:05:14
you should oh maybe you didn't that's
1:05:17
although this is a forked version of
1:05:19
your repo from a while ago
1:05:23
in that case i'll actually add you
1:05:29
ah yeah that was the reason why i didn't
1:05:34
in there so i'll just add you
1:05:41
what's your username
1:05:47
okay cool find you
1:05:49
you got it okay yeah and i'm just adding
1:05:53
to the repo there you go done
1:06:01
i think you probably have to accept that
1:06:04
invite first all right
1:06:13
can i see it on github or do i have to
1:06:29
yeah there we go okay
1:06:34
all right let's give that a go
1:06:40
what are you doing
1:06:42
okay just to um just close that one
1:06:46
because you won't do it uh because
1:06:49
you've just accepted the
1:06:53
so you probably have to do that again as
1:07:00
i don't know why it's saying
1:07:01
synchronizing changes
1:07:11
i'm not gonna assume things uploaded the
1:07:17
i'm just gonna wait for it i don't know
1:07:18
what it's doing this is odd
1:07:26
isn't good too uh so there's your
1:07:28
pending change is it
1:07:34
so it's already committed
1:07:37
okay doing good push
1:07:39
yeah let's try that
1:07:45
maybe i have to close the vs oh there
1:07:47
you go perfect yeah i think it's just bs
1:07:55
good to have that all done
1:08:06
i was about to by mistake remove as in
1:08:10
you as in as a person from
1:08:15
the screen uh but not your screen share
1:08:20
no that's bad that's bad
1:08:39
you could have done better well that's
1:08:41
if you're expecting more than that's
1:08:42
your fault yeah that's your actually
1:08:46
i'm just kidding we are all here to
1:08:50
learn together you shouldn't expect too
1:08:59
i'll take everything back because i
1:09:01
didn't mean those so yeah oh that's fine
1:09:04
no offense taken at all
1:09:10
do you want to do the closing
1:09:14
sure so today we were working on the
1:09:18
default lambda handler and the websocket
1:09:26
i don't know we just did some more
1:09:28
debugging trying to find out why
1:09:32
two like messages back to the client um
1:09:39
what the next step will be is maybe just
1:09:41
look in the documentation or other
1:09:43
examples and see if that's also the case
1:09:45
and take it from there
1:09:53
really good summary story thank you and
1:09:59
for tuning in if you want to see how we
1:10:05
kind of a logical bug then
1:10:08
feel free to tune in tomorrow's
1:10:17
that's the one right guys thank you
1:10:19
everyone have a good night