0:00:24
hey what is going on everybody welcome
0:00:28
back to another session of
0:00:31
raw quotas brought to you by okay i said
0:00:35
it the wrong way around
0:00:37
bill breaking fakes brought to you by
0:00:39
yours truly yeah rule coders
0:00:44
marin tori how you feeling today
0:00:47
i'm good man i'm pretty i'm pretty good
0:00:49
i'm happy to be on
0:00:53
i'm really happy to be on as well um
0:01:00
timing is half nine but i've had this
0:01:02
world commitment and my
0:01:06
meeting just finished so uh i was like
0:01:10
not okay um so just do a different
0:01:15
enlargement of the country here we go i
0:01:18
begin today by acknowledging the
0:01:20
traditional custodians of the land on
0:01:22
which we gather today and pay my
0:01:24
respects to the elders past present and
0:01:26
future i extend their respect to
0:01:29
aboriginal and torres strait islander
0:01:46
it's a bit of a complicated one but i'll
0:01:50
tell you that by text
0:01:55
just been really as in
0:02:00
occupied with work so i didn't really
0:02:02
get the chance to reply back on on time
0:02:07
yeah i'll get back to you after
0:02:09
the stream hopefully
0:02:11
all right so just a bit of a recap uh
0:02:15
we are still planning
0:02:22
in the process to solve the blank little
0:02:26
line well that's coming from the lambda
0:02:27
response when the websocket is triggered
0:02:34
we're just trying our best to
0:02:36
see why that is and how can we solve it
0:02:43
does that make sense tori
0:03:02
yeah hell yeah cool all right no problem
0:03:05
so let's dive straight into the sharing
0:03:10
and i'll share my screen
0:03:13
everything is there
0:03:21
it's the first time i can't see the menu
0:03:28
all right turn it open
0:03:42
objective that was definitely a strong
0:03:44
intro it's very strong
0:03:48
i love you both sarcasms
0:03:54
it's probably the strongest one yet
0:04:00
i'll improve guys i'll improve you have
0:04:03
my word i will improve
0:04:11
we so i'm not even going to try testing
0:04:14
it because we know that this won't work
0:04:18
i can't see your vs code zayn it's
0:04:20
frozen i think your screen's frozen
0:04:25
well at least on stream yard i don't
0:04:32
come on i will stop my screen and share
0:04:35
okay entire screen
0:04:39
deck dev says no how about now
0:04:48
can you see do you see it's just a
0:04:50
picture of you oh yeah
0:04:54
i wonder why this is happening
0:04:57
looks looks like your driver's license
0:05:04
like my driver's license photo is so bad
0:05:09
you're not the only one way you're not
0:05:17
what's happening to this
0:05:21
you wanna you wanna
0:05:23
you wanna exit and come back in or
0:05:28
let me try mine and see if it's uh
0:05:31
let's see if it's like a stream yard
0:05:44
let me in or let me know oh sorry i was
0:05:50
okay yeah you can see mine
0:05:52
yeah try exiting and coming back
0:05:54
okay i'll be right back
0:06:01
i wonder what he was daydreaming about
0:06:12
and i'll just share my screen now
0:06:21
let's let's let's see
0:06:24
is he just showing a screen um a picture
0:06:32
do you want do you want me to do it then
0:06:36
yeah yeah please yeah i just
0:06:40
i just don't want to
0:06:43
yeah gekko's gonna be gonna be angry
0:06:55
add your screen to the screen share and
0:06:57
we can take it from there
0:07:00
sounds great all right cool so
0:07:08
i've got a feeling that we might
0:07:14
no nothing to pull
0:07:16
um i've got feeding they you know uh in
0:07:22
websocket api was showing two urls
0:07:25
one was the websocket and the other one
0:07:34
might need to happen and it's just based
0:07:44
websocket or full connection
0:07:47
we might need to use the connection url
0:07:53
or to receiving messages from the lambda
0:07:58
i'm thinking that one now
0:08:00
the connection what do you think
0:08:07
um when you say sending receiving
0:08:10
messages what do you mean exactly
0:08:13
you know how we are
0:08:16
uh doing a payload
0:08:21
api and trying to trigger lambda which
0:08:28
so what i mean is instead of
0:08:31
using the websocket you're right to do
0:08:34
that oh wow new console
0:08:38
sorry oh man i hope it's better sorry
0:08:56
are you trying to say that by sending it
0:08:59
to the default lambda that's our problem
0:09:07
not ascending to the default
0:09:09
default camera it's our problem might be
0:09:13
that we are using the wrong endpoint to
0:09:18
to send and get the request
0:09:21
um send the request and get the response
0:09:30
so how would you how would you change
0:09:34
so i'm just thinking that if we can you
0:09:40
connecting to the websocket
0:09:49
um instead of that
0:09:52
how about if we use the connection
0:10:00
uh well it's it's not gonna work zane
0:10:03
because we need the websocket
0:10:09
this is this wss means websocket the
0:10:12
websocket protocol
0:10:18
what i'm basically trying to say is that
0:10:25
when we connect to the website websocket
0:10:36
yeah so which is using the websocket uri
0:10:43
but in the default
0:10:45
default lambda because
0:10:47
all the default lambda is doing at the
0:10:50
moment doing whatever we need after the
0:10:59
so i'm thinking that
0:11:02
because it's off to the wrong connection
0:11:07
why don't we try and
0:11:10
and use the connection url
0:11:15
in that specific lambda only
0:11:21
is that making any sense because
0:11:24
it is making any sense
0:11:26
it is making sense like i just all the
0:11:29
docu all the um tutorials and
0:11:33
like documentation that i've followed
0:11:36
looks exactly like the way we have it
0:11:38
which is like this one is from an
0:11:40
official aws blog and like they're doing
0:11:43
the same thing if you see this on my
0:11:45
screen highlighted here
0:11:47
well except for the table part but like
0:11:51
they're doing post to connection by the
0:11:54
posting some message right
0:11:57
so i i don't i don't know
0:12:01
um and this this looks good this looks
0:12:04
like exactly what you have as well the
0:12:06
domain name and the stage which is
0:12:12
when you say domain name that can be two
0:12:20
and does it show in the
0:12:23
blog as in what what values in the
0:12:32
let's see i don't think so but
0:12:35
let's check it out
0:12:39
let's see if i can just sit quickly
0:12:58
he knows what he can
0:13:01
and he knows what he wants i like
0:13:07
now he's now he's now he's got a taste
0:13:17
he deserved it see that's what happens
0:13:20
that's yeah that's like being a
0:13:22
developer is right you solve one problem
0:13:25
but by solving that problem you create
0:13:27
another problem so here here the problem
0:13:31
geckdev now wants more kibosh he wants
0:13:34
more kebabs to solve more problems
0:13:42
um well here's i mean this is just the
0:13:44
code that they have this it's like a
0:13:46
snippet um but it says
0:13:50
uh the sent so they called it the send
0:13:54
blah blah blah at this point blah blah
0:13:58
but it still doesn't show me what what
0:14:07
so basically it gets it gets it gets the
0:14:10
client from you know the client id well
0:14:12
here they're pulling it from dynamodb
0:14:14
because they're saving it but it's the
0:14:16
same thing right and then they're using
0:14:18
the post to connection call which we're
0:14:23
i have like i have no idea why
0:14:29
it's any different
0:14:31
okay hang on a minute and can you go up
0:14:33
a bit please uh on the connect one one
0:14:36
connect yeah i just want to check
0:14:42
uh taking the table name and putting it
0:14:45
into the putting into dynamodb
0:14:48
taking so they're not really doing
0:14:50
anything right they're just putting the
0:14:52
connection id in the table
0:14:57
actually what i'm thinking that
0:15:06
just do it in this way
0:15:16
the where we're doing it now although
0:15:22
line and although this that shouldn't
0:15:25
really come but that's
0:15:28
our kind of not in the price list
0:15:33
so what i'm thinking we can
0:15:46
uh set with seven connection id
0:15:51
in the database upon
0:15:56
yeah that sounds good to me i could also
0:16:04
i could also try this
0:16:06
in my browser console right now and see
0:16:08
if it connects if you want but if you
0:16:11
want to just move on that's fine
0:16:13
because i could just whip whip it up in
0:16:15
the car in the browser dev tools console
0:16:19
i'll just set up the connection and then
0:16:21
send them send a message and see what
0:16:24
happens when we get one back because
0:16:26
that's basically what would happen on
0:16:27
the client side you know when you put it
0:16:31
do you want to try that or no um so you
0:16:33
just say you're gonna set this blog up
0:16:41
my chrome dev tools here
0:16:44
yeah but would you need to go through
0:16:50
everything yeah i would just like the
0:16:55
web the websocket api
0:17:00
but if you if you just want to move on
0:17:02
that's cool man you know it's not
0:17:05
from it's not bad though it's pretty
0:17:11
give this same half an hour
0:17:16
yeah this is all you got to do
0:17:18
okay all right right right let's see i
0:17:22
yeah then you can just go for a yeah
0:17:24
yeah and then this is
0:17:26
this is kind of nice too because then
0:17:28
basically this is what you're gonna what
0:17:31
you would do on the client side anyways
0:17:33
right yeah yeah so it's like we're not
0:17:37
totally wasting time here
0:17:43
so i'll just take this drop it in
0:17:47
the dev tool there
0:17:52
and then that socket
0:17:55
this is gonna well
0:18:02
so this one this one should send a
0:18:04
message but we don't need to do that
0:18:09
so i'm just going to comment this out
0:18:14
should listen for messages so i think
0:18:18
hopefully i think that should be it
0:18:23
i'll give it a shot here
0:18:28
refusing to connect
0:18:32
refuse to connect because it violates
0:18:34
the content security pro i wonder if
0:18:39
my console here let me try it
0:18:49
let's just do it here
0:18:57
well it's kind of huh i don't even know
0:18:59
what that is to be honest
0:19:06
let's try it on github
0:19:08
probably i'm doing something silly
0:19:14
do you happen to have any
0:19:23
do you wanna zoom in a bit cause i can
0:19:26
hardly see your screen oh really okay my
0:19:31
is that better okay yeah yeah yeah a
0:19:36
because security policy
0:19:46
huh that's right uh you have a bit of a
0:19:48
security content security problem
0:19:52
yeah well then it's beyond me
0:19:56
okay well that's right
0:19:58
yeah oh i got i got i got
0:20:01
i got one i think i got one place i can
0:20:03
try it really easily
0:20:14
javascript playground isn't it
0:20:29
new sandbox let's just go with um
0:20:39
do you have any advice gecko anything
0:20:42
would be helpful that is free advice
0:20:46
i love what you said every advice
0:20:55
i guess you have to precisely mention uh
0:20:58
that is free advice i like it
0:21:09
yeah that's a lot of kebabs
0:21:14
open up kind of a portable kebab shop in
0:21:23
nothing in the console
0:21:26
windows toy windows is no it hasn't it
0:21:29
has nothing to do with windows my plan
0:21:33
i'm just pulling your leg don't worry
0:21:36
i think i need to just
0:21:39
see it's not good why would this not
0:21:44
let's wrap it in a iffy i don't know why
0:22:05
maybe i need to do like uh on load event
0:22:08
or something but um now i'm getting
0:22:10
further discouraged from actually doing
0:22:20
doing anything on this on connect
0:22:31
okay hey there it goes
0:22:33
oh she did get back did you see that
0:22:36
got back two messages
0:22:41
yes see some message from the servers no
0:22:57
let's just move on then
0:23:01
yeah i'm gonna have to
0:23:03
probably shoot that um
0:23:06
um let's just put it
0:23:08
just push it back to the end to pass the
0:23:17
how about how about you push the
0:23:25
and just release the one
0:23:28
we have at the moment which is the
0:23:31
this is an alien i'm i'm just talking
0:23:34
um okay cool so do you wanna go uh
0:23:39
now what we can do is basically
0:23:55
so one one final one final thought on
0:23:58
this but it probably shouldn't make any
0:24:01
difference whatsoever
0:24:03
is and honestly i should probably just
0:24:05
go look at the documentation sometime or
0:24:13
guess off the top of my head is because
0:24:19
because we're triggering this lambda
0:24:21
like our client is triggering this
0:24:25
and we're sending a message back to the
0:24:28
same client so ourselves maybe that's
0:24:32
but that doesn't seem like it should be
0:24:39
i wouldn't be able to comment on that
0:24:41
because i i don't know
0:24:44
i don't know about websockets as much as
0:24:48
you do you're probably right
0:24:50
and that might be the problem but um
0:24:54
yeah i'm gonna probably do my research
0:24:58
this and um then i'll probably be able
0:25:05
cool so uh let's open up the my tbs the
0:25:11
and we can go to our on connect lambda
0:25:22
and open up the blog
0:25:29
the blog the blog which showed me that
0:25:32
all they're doing is uh the upon can
0:25:36
name they're just inserting the
0:25:37
connection id in in the database
0:25:49
i'll dump this in the chat too
0:25:54
or you want to see the blog well here's
0:26:02
this one because this
0:26:10
okay so what they're doing is bring the
0:26:16
we need to be having a params
0:26:20
and then we need to basically
0:26:26
table name as a process
0:26:32
environment variable so if you want to
0:26:36
and then what we can do is as an item we
0:26:40
can simply say okay this is the
0:26:44
id as a key and then the value as that
0:26:48
request context object
0:26:51
does that make sense
0:27:01
you do you want me to just
0:27:04
basically implement this right now
0:27:11
straightforward stuff
0:27:15
so what is this going to do exactly
0:27:17
because i'm not super great
0:27:21
you know how we are connecting at the
0:27:25
um upon connection as soon as it
0:27:29
connects it will take the connection id
0:27:31
from our event object
0:27:36
the request context object from the
0:27:41
and then it will extract the connection
0:27:44
id and insert in the connection id
0:27:47
column of our table
0:27:49
dynamodb table connection id okay so
0:27:52
is there gonna be like
0:27:55
like in terms of in terms of the table
0:28:01
so the table is already there
0:28:04
okay all all is gonna do i have is that
0:28:09
the table will basically consist of
0:28:29
okay and which will have all the
0:28:36
user connects to the
0:28:38
web socket the connection id will be
0:28:48
and that makes sense so far
0:28:50
yeah that makes sense so how
0:28:53
like on the in dynamodb the
0:28:58
how will you know which user is connect
0:29:08
we will give them user
0:29:14
followed by a unique identifier
0:29:19
so each user will have
0:29:25
identifier the connection id
0:29:33
okay and so do we do do we also need
0:29:35
that for this onconnect
0:29:39
yes because that's where the
0:29:48
gotcha okay so are we gonna implement
0:29:50
that too right now or
0:29:57
as in as much as we can
0:30:01
get it done we can do that
0:30:05
they just have a call
0:30:06
back what do we have we have returned
0:30:09
did you use do you want me to use the
0:30:16
or do you want me to just keep it like
0:30:26
oh one thousand kebabs oh let's see how
0:30:31
is it is that worse then is that like
0:30:33
ten thousand dollars
0:30:44
k is a union of currency
0:30:57
what we can do is um
0:31:05
yeah we wouldn't need that one
0:31:09
um this is good you wanna use this get
0:31:12
context function still
0:31:18
not really no yeah it looks like the
0:31:20
only thing we need is just the
0:31:32
remove everything from line three to
0:31:45
line three to seven remove everything
0:31:50
okay i gotcha i'm just okay cool cool
0:31:53
it's moving moving shifting stuff around
0:31:56
the keyboard wario aka tory
0:31:59
i like that i am not a keeper i try i
0:32:02
there i sometimes try to spend a few
0:32:04
days where like i only use my keyboard
0:32:08
you're right i see
0:32:12
oh there is a there is a guy who is
0:32:15
really fun to watch who works at netflix
0:32:18
and he has a twitch channel and it's
0:32:19
called he's called the primogen or
0:32:22
and he yeah you should check it out
0:32:32
let's just say that yeah
0:32:37
he loves them it sets the context right
0:32:42
all right so we got these put params and
0:32:49
we're gonna grab the table or i mean
0:32:53
have a key as a table name
0:32:58
that says so do you want are you going
0:33:00
to do it like this we're going to put it
0:33:01
in as an environment variable
0:33:04
yes we will but for this we want to
0:33:08
changing our sam template as well now
0:33:12
which is good which is good
0:33:15
so we got the table name and then we
0:33:25
stuff oh so these are these are inserts
0:33:30
um so connection id um
0:33:38
um i'll just give you the exact
0:33:43
um format of the connection id in
0:33:46
download db because the key of that one
0:33:49
has to has to match otherwise you won't
0:33:58
you hear me okay okay i mean zayn
0:34:03
okay if my if my internet gets
0:34:06
slow then i might switch network
0:34:09
just kind of went weird on me i think
0:34:17
all right i'll just give you that
0:34:26
table that we need to use to keep
0:34:29
the connection ids
0:34:31
okay so it's chord
0:34:38
this chord is called is called
0:34:45
that's interesting okay
0:34:47
i'm gonna have to open up my sam and
0:34:56
okay so it's called this
0:35:04
that's all right no problem
0:35:09
send it to you in private chat
0:35:14
that key has to be this
0:35:33
item on line nine yeah
0:35:39
oh gotcha so this is like this is a key
0:35:43
call them and that's kind of a primary
0:35:51
continue i'm i'm just gonna try to
0:35:54
switch networks real quick i
0:35:56
think i think i'm being laggy let me
0:35:59
just double check that's all right
0:36:02
see i'm just doing a speed
0:36:08
yeah it should be fast
0:36:20
you know what though i live amongst them
0:36:22
i live out here with no tarp
0:36:25
oh yeah okay thanks i live out here with
0:36:27
no tarp and amongst the wild dogs
0:36:33
yeah it's a real crazy lifestyle
0:36:36
most people think of my lifestyle be
0:36:38
something different
0:36:44
i know he's gonna say that
0:36:51
okay so so it's item and then this is
0:36:54
the column name is connection id
0:36:57
yes and the value has to come from the
0:37:01
event request contact object
0:37:06
okay and this okay yeah it's grabbing up
0:37:10
destruction and dropping oh
0:37:14
yeah i see what you do i mean if you
0:37:16
don't like my code i can just oh no that
0:37:20
you don't like my code that wouldn't
0:37:23
maybe this is more readable
0:37:28
more readable for you
0:37:30
all right i like that better
0:37:34
what's what's the what's the s
0:37:38
to be honest i was gonna ask the same
0:37:47
i don't i don't remember it's been a
0:37:48
month since i worked with the dynamodb
0:37:54
i think you might be called as in the
0:38:02
data type data type we can't check your
0:38:04
stream yeah that would make sense
0:38:07
actually okay cool yeah
0:38:15
now we have this this put item call
0:38:28
what's the import for
0:38:36
i guess copy from one or one of the
0:38:38
other lamp that's my brain it's
0:38:42
working at the moment
0:38:50
oh here we go it's this
0:38:54
yeah that one's that one's a
0:38:56
document.line yeah you want me to call
0:38:59
it keep it i'll keep a dot client for
0:39:04
please that'd be good
0:39:12
and now we can probably call a put
0:39:27
we probably don't need to comment it
0:39:32
code is probably self
0:39:35
explanatory though
0:39:37
oh it's like a poem here right
0:39:41
just just defacing the poem with this
0:39:48
have it your way man you don't you don't
0:39:51
no no no have it your way don't worry
0:40:10
all right poor item and we can
0:40:14
ashley does that i don't think
0:40:19
the dog client has that method
0:40:25
it probably has just put
0:40:28
double check i might be wrong there's
0:40:31
something wrong with this page it's
0:40:35
well let me look in uh
0:40:37
i i have the i have the
0:40:39
whole lambda i'm i'm being dumb
0:40:42
i can just look it up right here man
0:40:46
on connect yeah it's put
0:40:50
put yeah dark client
0:40:55
yeah you were right dude
0:40:59
i just want to confirm as well
0:41:07
so in the blog snippet it's wrong it's
0:41:10
just a text because they're not using
0:41:12
the doc client as in no they're not
0:41:15
using that library we're using to
0:41:18
interact with dynamodb
0:41:21
they must be using in different ways
0:41:24
yeah oh maybe maybe they did say the
0:41:26
documentation was updated later
0:41:28
or yeah okay so maybe it was like a
0:41:33
yeah yeah that could
0:41:36
possibly well be yeah okay async
0:41:39
everything is the same here
0:41:41
um oh so this is this returns a promise
0:41:45
gotcha yeah yeah okay so we have we have
0:41:49
our async function here and then
0:41:51
so i can i can use a weight
0:41:57
i don't know they wrapped it in the try
0:41:59
catch box should i do that as well yeah
0:42:01
i was gonna say that
0:42:05
uh i don't know if you i
0:42:08
i'm assuming you mustn't know one try
0:42:16
and then they they return this that is
0:42:28
we have our put params the params
0:42:32
yeah that's all we should need and do it
0:42:35
do they in a promise yeah that looks
0:42:38
good to me and then catch the
0:42:45
i log the error i know yeah
0:42:53
and then we have return
0:42:56
uh i love your skills story
0:43:04
oh uh it's status right oh status code
0:43:16
so if it fails then i think it should be
0:43:19
500 if it doesn't then it should be 200.
0:43:24
um any message for the body you want
0:43:46
without the string
0:43:51
oh you want me to put the error object
0:43:53
yeah oh he just should have said that
0:44:00
what else do we need
0:44:02
to do oh they stay stringified there so
0:44:05
because it's an object
0:44:09
makes sense i always forget whether
0:44:12
error is a string or an object
0:44:15
i guess it's when you when you throw an
0:44:17
error man like you want to throw an
0:44:19
error then i think it's a message or it
0:44:22
has a message property
0:44:32
working for 14 hours so my brain is
0:44:36
partially very good and then
0:44:38
just about done yeah pretty much that
0:44:42
i'm just pushing myself a bit
0:44:45
okay status 200 and then
0:44:55
i don't think we see
0:45:07
do you guys have um
0:45:14
there we go formatting
0:45:18
good you want me to build it
0:45:23
can you get rid of the console
0:45:27
statement on line five
0:45:29
that's not doing us any good and can you
0:45:32
go back to the template and we need to
0:45:35
add all right the table
0:45:38
name as a process variable so go up
0:45:42
all right uh do you do you know how i
0:45:46
yes so if you go up uh and
0:45:52
you know where it says variables online
0:45:57
probably add another one saying
0:46:22
yeah yeah that should do it and then we
0:46:26
can you find where is this board used
0:46:35
okay use here in the template
0:46:38
yes please because i just want to
0:46:40
confirm okay here ah okay cool cool cool
0:46:43
so if you if you go down to the
0:46:51
uh bear the bottom
0:46:56
websocket connection table
0:46:59
uh websocket connection table will be at
0:47:04
oh this this one yeah
0:47:07
you know that table name there
0:47:13
ws connection on line 248
0:47:18
copy and paste that one on the um
0:47:23
will you use this as the variable name
0:47:27
back up at the top
0:47:29
here yeah yeah here we go okay
0:47:32
can you change the table
0:47:37
copy so i'll call this
0:47:40
if i call this table
0:47:42
websocket yeah yeah
0:47:48
but this has to be same in the code as
0:47:53
table underscore webs right socket so
0:47:57
just copy and then go back to that one
0:48:02
voila you did it sorry
0:48:07
only i could get paid to do that
0:48:13
oh by the way i passed my first coding
0:48:16
um exercise i was gonna
0:48:18
ask you fantastic thank you
0:48:20
congratulations appreciate it
0:48:25
thanks to thanks to um
0:48:28
this show for getting me this far
0:48:31
so do i run sam build
0:48:36
uh yes you should be able to know yeah
0:48:41
ah right i have to yeah
0:48:43
don't don't worry i got it
0:48:49
you know you she's all tory i did look
0:48:53
at this the other day and then i just i
0:48:56
just really have not had time to go and
0:49:01
now i actually i know i definitely don't
0:49:03
have time because i'm prepping for like
0:49:05
this interview and then i'm doing a
0:49:07
project as well for this
0:49:12
uh for for an internship at shopify in
0:49:15
case this this this other like senior
0:49:20
um it's it's a it's a it's a front-end
0:49:22
challenge deck dev
0:49:25
it's it's it's not bad honestly it's
0:49:27
pretty fun but it you know any of these
0:49:31
any any challenge project that you have
0:49:34
to do like takes up a lot of time you
0:49:37
yeah i applied for a senior role um
0:49:41
the guy who referred me said oh yeah
0:49:44
there's only senior roles right now um
0:49:51
just apply anyways and i was like are
0:49:59
hey you watched goodwill hunting man
0:50:02
we talked about it
0:50:04
i like i like you on twitter
0:50:14
um but yeah he told me he's like just
0:50:17
just apply do it you know because i was
0:50:19
super apprehensive and then you know
0:50:22
being a scaredy cat
0:50:24
and he's like just do it because like
0:50:27
they'll consider you for a front-end
0:50:31
like even if it's not senior so
0:50:40
that is absolutely brilliant
0:50:43
man you have no idea how much i'm happy
0:50:49
i have a long ways to go i have a long
0:50:52
ways to go to get this position this was
0:50:54
the this was the first
0:50:58
how many steps down have they called
0:51:00
the uh i think there's i don't know if
0:51:03
they include the last two together which
0:51:05
are technical or they're each separate
0:51:09
but there's either two there's either
0:51:11
three or four stages
0:51:14
all right okay so there's two more
0:51:16
technical stuff and then the next one i
0:51:18
have to do they call it the life story
0:51:21
which is 60 minutes you know
0:51:24
like talk about yourself
0:51:26
so i'm like wow it will be so
0:51:29
if they feel like my life story is
0:51:35
mike that's pretty personal
0:51:39
my life story they don't
0:51:42
mean they're actually like yeah
0:51:45
and i was like like i failed at my life
0:51:48
my life is a failure
0:51:53
underestimating yourself a lot
0:51:56
that i know completely 100
0:52:11
have you put them minus as well or is
0:52:15
am i just blind yeah i did i put the
0:52:18
so phone probably just small sorry
0:52:22
get closer get closer to the screen
0:52:27
you probably have to put the
0:52:33
profile minus name
0:52:35
and then put the actual actual actual
0:52:39
thing did i do this out of order
0:52:42
so uh so the only only thing you you're
0:52:45
missing at the moment is
0:52:47
um minus name after the profile
0:52:54
has to be minus name like this
0:52:59
no no no sorry my brain is dead sorry
0:53:03
it's cool man let's see i'll run this
0:53:05
and see what happens yeah yeah do that
0:53:08
it'll yell at me probably if it's wrong
0:53:33
you know what i'm thinking my problem on
0:53:35
windows is is i forgot that sam
0:53:38
does this deploy in in build i think in
0:53:43
so i'm wondering if there's something up
0:53:47
so i gotta take a look at that
0:53:52
yeah that definitely makes and i don't
0:53:56
think it has anything to do with windows
0:53:58
despite whatever you tell me
0:54:08
windows laptop as well ever
0:54:11
at work so is it fast
0:54:14
it is really fast yeah really fast
0:54:22
this is the one i'll just show it to you
0:54:31
okay thanks thanks geckdev
0:54:33
oh sorry i missed the laptop what is it
0:54:44
you know the make in the model
0:54:47
uh to be honest that's a really good
0:54:50
question i didn't even have a look at
0:54:57
it's usually a pec
0:55:14
he's he's telling me
0:55:16
i forgot this joke so he's he's telling
0:55:20
it's like a joke for
0:55:23
um problem exists between keyboard and
0:55:28
can't oh i got that one i say i said
0:55:36
i learned something new
0:55:38
today a new acronym
0:55:40
i've seen that a while ago i just i
0:55:43
bought it hook line and sinker
0:55:46
such a guppy um deploy the chat
0:55:50
why and then present yeah yeah
0:55:59
oh wow i haven't even had my brick um
0:56:08
it's been a long ass day man yeah i can
0:56:11
i can tell well is it how much how much
0:56:14
more like craziness at work do you have
0:56:17
to go through like if like another week
0:56:28
yeah so basically what i'm trying to do
0:56:31
is i'm trying to spend as much
0:56:34
time possible as in getting to know uh
0:56:38
everything in in the start so
0:56:42
things actually do come up as in some
0:56:44
really really really
0:56:48
really serious ones then i can just
0:56:52
keep on smashing them
0:56:56
two hours max one hours
0:56:59
the start is a bit
0:57:04
yeah yeah well so they really just like
0:57:06
you you got on the job and then they're
0:57:07
like okay here you go
0:57:14
doing this six week of dev training
0:57:20
need to know a lot in terms of
0:57:22
compliance in terms of governance in
0:57:27
dev environments coding standards
0:57:30
everything everything so this is all
0:57:32
onboarding stuff yeah yeah
0:57:39
suggests a kebab and he says in
0:57:42
particular breakfast kebab
0:57:47
think about getting devon he'll be a
0:57:56
i was in breakfast
0:58:06
how should i test it uh so if you get
0:58:15
then you can do it in the same way we
0:58:20
before the only difference would be that
0:58:23
this time the connection id should get
0:58:25
inserted in in our database
0:58:31
which api do you want me to test
0:58:35
you know how you go to the
0:58:41
and you go to api gateway and get the
0:58:44
wss url oh okay so just use pi socket
0:58:49
yeah yeah pretty much gotcha i mean it's
0:58:52
i don't think it's gonna unless it
0:59:23
we need to change something in in the
0:59:30
no it was i think there was a space
0:59:34
starting space that's why
0:59:36
so this connected you want me to send a
0:59:38
message see if it crashes i mean it
0:59:40
shouldn't we just didn't change anything
0:59:47
kind of let's let's spend the wire right
0:59:56
we need to trigger on connect not the
1:00:01
okay that one's still
1:00:03
forget this one's an error but that's
1:00:06
well this yeah this this did this should
1:00:09
have triggered on connect
1:00:17
should i go to like cloud watch or um
1:00:20
unless first of all
1:00:22
let's check if our connection id is in
1:00:27
if it's dead then everything just works
1:00:34
if not then we can do
1:00:36
the oh click too soon choosing
1:00:43
what's the table name
1:01:01
it says one record isn't it
1:01:04
i thought it said that on the last
1:01:17
get live item account would that change
1:01:21
just a few items yeah
1:01:26
oh but it's it says every six hours so
1:01:33
i don't really know i'm gonna click this
1:01:36
button hopefully it's not very expensive
1:01:47
right here zane if you can't read it it
1:01:50
dynamodb updates the following
1:01:52
information approximately every six
1:01:54
hours so i'm assuming this get live item
1:01:56
count will immediately refresh it
1:02:00
all right if you want to try that one
1:02:05
it says you should choose
1:02:07
okay whatever it's just gonna run a scam
1:02:10
well there should only be one item right
1:02:12
yeah okay no items
1:02:14
okay so it didn't work
1:02:20
and see that stuff says no
1:02:29
uh what is the objective did i just do
1:02:32
something or is he just upset that it
1:02:37
i think he's just excited he didn't work
1:02:45
let's just leave it here for now
1:02:51
and we can come back to it tomorrow and
1:02:54
tomorrow have a go any meetings
1:03:01
worry i i i don't think i've got any any
1:03:06
we should be all right that's nice
1:03:13
um that was a good progress though i
1:03:23
do you wanna on this happiness do you
1:03:26
wanna do that closing i really don't
1:03:32
uh so we started the show a little bit
1:03:37
but what we got to do was we tried to
1:03:40
debug the default lambda
1:03:43
just for a few minutes um
1:03:45
unfortunately still the same problem
1:03:48
um but we're gonna come back to that we
1:03:50
decided and we're just gonna move on so
1:03:52
what we did was then we
1:03:53
worked on the on connect lambda and
1:03:58
um putting the connection id from the
1:04:01
event request context into the dynamod
1:04:05
into a dynamodb table
1:04:11
summary and as always thank you very
1:04:14
much guys and if you want to see how we
1:04:18
working feel free to tune in tomorrow
1:04:28
that's the one you know
1:04:31
all right guys have a good night thanks
1:04:33
everybody have a great night