0:00:55
that we're a team of
0:00:57
four developers now from
0:00:59
melbourne and indonesia and
0:01:03
we've been working on a project which
0:01:05
relates to adding persistent storage
0:01:07
to a current customers project
0:01:10
which is called um scrambler ca
0:01:13
and we're trying to add
0:01:15
persistent storage to this current open
0:01:17
source project which has been there for
0:01:23
yeah so i think we are at a pretty end
0:01:26
um stage of the project which means that
0:01:29
most of the stuff has been accomplished
0:01:32
um what has been left
0:01:34
is on the track of completion it i think
0:01:38
wrapping up things um
0:01:41
that being said yes i'm waiting for zen
0:01:43
um we should be there any minute
0:01:46
think he is having some technical
0:01:49
difficulties but uh
0:01:51
um i think he should be here soon but uh
0:01:55
till then i'll do the
0:01:59
acknowledgement of the country so here
0:02:03
i begin today by acknowledging the
0:02:05
traditional custodians of the land on
0:02:07
which we gather today and pay my
0:02:09
respects to the elders past present and
0:02:12
future i extend their respect to
0:02:14
aboriginal and torres strait islander
0:02:27
gonna play some music as well and see
0:02:29
how we go with that
0:02:31
it's always good to have some
0:02:34
pudding music in the background
0:02:36
um let's see what was the
0:02:39
captain below 5 music
0:02:52
are you about to hear me
0:02:54
hey yeah i'm playing some music then
0:02:57
let me know if it's too loud though all
0:03:02
i turned the wrong one down
0:03:09
how does that sound is it too
0:03:24
how about this a little bit more
0:03:43
yeah we were talking about the
0:03:45
project and the introduction but you
0:03:49
for a while so you tell us
0:03:56
jeff thanks guys for tuning in so a bit
0:03:58
of a recap what has been
0:04:01
uh up to in the project so
0:04:04
we are at the point of integrating web
0:04:07
sockets into our projects and the
0:04:11
purpose of that is
0:04:13
to basically just enable
0:04:16
um multiple users to interact with the
0:04:19
board as simultaneously
0:04:23
that being said um me and tory um we
0:04:29
learned an awful lot of
0:04:33
about web sockets in uh
0:04:36
amazon so there's been a really
0:04:39
steep learning curve um but we
0:04:42
we did actually manage to um
0:04:45
get the websocket connected in the last
0:04:50
so that seems to be pretty good um
0:04:55
so do you want to share
0:04:59
because i've already pushed the code and
0:05:01
um it should be in the new branch as
0:05:08
hey captain good to have you mate yeah
0:05:12
back to stream yard
0:05:17
yeah also the stream yells new plan
0:05:20
it's very annoying because you see the
0:05:22
stream yard logo on the top
0:05:25
yeah i was about to ask about that
0:05:27
yeah so that's the part of the plan
0:05:42
um i'll talk to you about that i'm off
0:05:46
offline because i've got some beasts and
0:05:48
baths to cover as well
0:05:55
yeah i finally got my equipment uh of
0:05:59
the new job and tomorrow is going to be
0:06:02
so that's all that goes what what
0:06:05
equipment did you get
0:06:06
i can see the headphones new
0:06:09
yeah so i got the headphones um i've got
0:06:15
keyboard mouse and a monitor which i'm
0:06:18
not going to use because i've already
0:06:25
hey what's the rule again like what do
0:06:27
oh you said net dev
0:06:32
nice let's change c sharp
0:06:35
what does the company do like what are
0:06:38
so it's a financial services company and
0:06:42
they are the because in financial terms
0:06:46
custodians or of the assets
0:06:51
um i'm not entirely sure if you know
0:06:54
what i mean by that i i just i should
0:06:57
have done that give you a technical
0:06:59
jargon of financial
0:07:04
what they do is as in keep maintain and
0:07:14
so what assets are is basically anything
0:07:18
that produces income for the clients
0:07:23
that's pretty cool so you'll be
0:07:24
developing like the platform or
0:07:29
and um they need a new functionality so
0:07:33
i'll be part of the
0:07:40
so really looking forward to it
0:07:44
so you started today
0:07:48
i'm starting tomorrow
0:07:51
yeah it's going to be my first day
0:07:53
yeah nice that's so cool
0:07:56
thank you for your
0:07:58
new beginnings new zen
0:08:02
probably um yeah you can
0:08:05
say that so what have you been up to
0:08:08
though everything okay
0:08:15
um yeah pretty much the same my
0:08:17
work is starting next week so i still
0:08:19
have this week off
0:08:23
um wrap up some things
0:08:27
yeah i don't know if there's much
0:08:30
but uh wait so is the company gonna work
0:08:32
with like a bigger company like i know
0:08:39
global company so they're based in
0:08:44
countries well and uk
0:08:46
is a part of that as well
0:08:50
um which was really good but my project
0:08:52
director is based in the uk
0:08:58
yeah and the company is called uh
0:09:07
november and zebra
0:09:11
that's a pretty cool thing
0:09:14
ready now best of luck man
0:09:18
yeah really looking forward to actually
0:09:22
coding in c-sharp rather than
0:09:26
which i've been doing for the past one
0:09:36
your going and everything
0:09:38
nice so i'll start my internship on um
0:09:42
um 24th oh first of all
0:09:47
we had a stream yesterday right
0:09:52
nice we did yeah so tori joined us that
0:09:56
yeah so yeah so it's a little bit so
0:10:02
okay yeah that's literally all it is i
0:10:05
don't know what to do until then like
0:10:07
it's gonna sit that's all
0:10:12
but i'm gonna like yeah
0:10:15
who interning with um
0:10:20
place oh it's called vex
0:10:25
what do they do as in oh they're they're
0:10:32
provide fleet payment solutions
0:10:37
and i think i'll be working in some sort
0:10:40
tracer traceability of payments like
0:10:47
not on the cyber security but actually i
0:10:49
think developing it
0:10:52
i think the stack is gold and
0:10:57
c plus plus and aws
0:11:00
some sort of these languages i
0:11:02
i'm not too sure actually but there's
0:11:04
definitely go involved in it for sure
0:11:09
yeah i've heard that
0:11:16
yeah so that's why i was keen for this
0:11:19
job like i got another role as well
0:11:22
but then i had to turn it down because
0:11:25
it was like java and like i already knew
0:11:28
so they might as well get into go or
0:11:32
yeah even though it's a pretty good idea
0:11:37
so yeah that's happening um i
0:11:42
that's pretty much it and the good part
0:11:44
is i'm really really keen because
0:11:46
i got to know that the
0:11:56
i'm pretty sure that's the same with you
0:11:57
i think that's pretty standard procedure
0:12:00
i i didn't know that i didn't know that
0:12:04
um yeah i'm looking forward to like just
0:12:07
trying to get some certifications i
0:12:09
think right right right yeah i think
0:12:12
that will be a really good
0:12:16
for you especially if your company is
0:12:18
paying because in that
0:12:20
way you can actually get this search and
0:12:23
apply them knowledge as you learn as
0:12:26
yeah and you can get like they are
0:12:28
pretty chill like you can get a cloud
0:12:32
yeah yeah i mean am i gonna use it in
0:12:34
the job so i don't think so like until
0:12:37
then it's it's ethical so i don't think
0:12:40
yeah yeah that's pretty cool i don't
0:12:41
have to pay for a girl guru or something
0:12:43
so that's brilliant man
0:12:46
that's pretty cool yeah i'm really happy
0:12:49
for young congratulations
0:12:53
time for tori tori you tell us some good
0:12:55
news with the new job
0:12:58
yeah oh he's got a um interview shopify
0:13:02
on the 12th oh wait didn't you used to
0:13:05
work at shopify tori
0:13:07
or was it someone else
0:13:12
well you used to work in some sort of
0:13:21
i think he is related to
0:13:23
online shopping oh i might have just
0:13:28
okay yeah no you're right
0:13:35
you mean like as an accounting company
0:13:39
actual book company
0:13:44
i was an e-commerce already yeah
0:13:46
oh the manager right right right
0:13:49
so he wasn't really on the depths
0:13:51
def side is it or you were the
0:13:57
i had a small business too yeah but
0:14:04
what was the business about if you don't
0:14:08
do you know saying i i don't know yet
0:14:17
know that i'm just
0:14:19
guessing you know right now
0:14:23
the book company was the business
0:14:27
but like an actual book or like
0:14:31
that's what i'm asking
0:14:34
government times then i are imagining
0:14:36
books like actual books
0:14:42
that's interesting
0:14:50
get the music is too loud oh yeah it's
0:14:53
kind of saw that coming
0:14:58
you know it could um
0:15:00
turn it down a bit
0:15:03
how would that get this
0:15:14
are you working on the back end or
0:15:15
different all right
0:15:17
we're working on the back end um so if
0:15:20
you do a pull um you should bring the
0:15:36
okay and the branch was websocket
0:15:47
might wanna delete some branches if
0:15:50
they're done though
0:15:51
i think they're all in your local bro on
0:15:54
local because these are not
0:15:59
yeah it says remote um i don't know
0:16:05
look at that yeah yeah that's fine
0:16:28
you don't have to deploy it um
0:16:33
did do you wanna install
0:16:44
what is it called again uh mpm
0:16:57
and that is called w
0:17:02
cat yeah there we go
0:17:08
what this basically does is is connects
0:17:13
tests the i mean tester
0:17:22
client and websocket server
0:17:29
um i'll probably have to give you the
0:17:31
url hang on a minute
0:17:46
okay that one's there
0:17:53
okay just signing into the
0:17:56
account and getting the
0:18:24
were also like christmas eve day also
0:18:27
like there's a tree yeah it's been and
0:18:29
then new year's eve as well
0:18:35
guess what the best part is you're back
0:18:54
instead of resolutions i've got
0:18:58
goals set already so
0:19:02
like some time-based goals for this
0:19:04
evening oh okay so
0:19:07
so what's up yeah so
0:19:11
i can tell you a few of them um yeah the
0:19:21
one other one is to
0:19:26
actually um pass my probation
0:19:31
all right video work probationary
0:19:35
workplace probation you mean yeah yeah
0:19:38
how much is it six months for you as
0:19:44
david those scammed to me
0:19:47
i'll talk to the heck
0:19:50
is yours six months
0:19:53
yeah mine six months
0:19:55
that's kind of sad because my contract
0:19:56
is one year i actually need to talk to
0:19:59
i think it depends on the company
0:20:05
previous company as in not the previous
0:20:08
but the one before that i works for they
0:20:10
had a probation for
0:20:15
but the one that i just
0:20:17
finished working for they had it for
0:20:20
three months and this one has it for
0:20:22
three months as well
0:20:24
probably depends on the company itself
0:20:28
okay so it is common i thought i yeah
0:20:30
okay makes more sense
0:20:34
true true um i've sent you the
0:20:38
um url in the private chat so if you
0:20:44
paste it where sorry
0:20:47
actually through the terminal if you do
0:20:54
hyphen c which is the short for connect
0:20:57
and then the url which i've
0:21:00
which i've sent you
0:21:02
in the private chat yeah how it looks
0:21:05
and now press enter it should
0:21:09
so that connects and
0:21:15
now what we need to do is
0:21:22
um which is half done half not
0:21:25
so how we we want to do is um
0:21:34
okay i don't know how to explain this
0:21:39
because you can tell me what to do like
0:21:41
i'll try to understand
0:21:50
you know that the communication happens
0:21:53
from the client to the
0:21:58
um and the client passes
0:22:03
json request as a key value pair
0:22:10
match something so if you go
0:22:36
uh to the websocket part ah he says you
0:22:42
you've got request body
0:22:46
as in the rules selection expression
0:22:55
this some requests from the client to
0:22:57
the websocket server
0:23:00
um in the key part
0:23:02
the action has to be present as in
0:23:12
in the keyboard like what key as in key
0:23:24
in the key part whatever
0:23:27
you put after as in the body dot as in
0:23:30
it can be action it can be a message as
0:23:33
in the word message it can be test
0:23:41
because it looks for the
0:23:44
that part and then whatever the value is
0:23:50
key it will basically
0:24:01
for example if you have
0:24:03
action as a key and say connect as a
0:24:08
then you would need to have a lambda z
0:24:12
that is called connect as well
0:24:19
and then all the connection
0:24:27
lambda so see where i've created on
0:24:38
in the file explorer
0:24:57
url it hits this this lambda and it's
0:25:02
because you can find it
0:25:04
it says okay i can find it and i can
0:25:11
right right that making any sense
0:25:15
i'm trying to understand it's like my
0:25:17
first time listening to it so okay
0:25:19
mostly i'll take the time to complain
0:25:22
if you if you want to go ahead and do it
0:25:26
watch what you're doing i think they'll
0:25:29
um i think you share them might be
0:25:32
as in a better way to do it okay then
0:25:35
cool i'll probably share my screen all
0:25:38
right yeah yeah but like do do explain
0:25:40
me what you're doing yeah of course
0:25:45
um so just share my screen with you and
0:25:54
youtube link there i actually learned to
0:25:58
from there and that could be
0:26:00
useful for you as well yeah sure
0:26:03
who is screwatory is it me
0:26:08
i hope it's not me
0:26:25
where did i want to go
0:26:34
oh no no no no i don't want to open the
0:26:39
why would you give me that
0:26:46
why is he not giving
0:26:58
okay that's the blog we don't need you
0:27:02
actually i'll open up my terminal and
0:27:18
there we go cool we do
0:27:23
now what we need to do is basically we
0:27:33
a response from one of our
0:27:40
when we connect um
0:27:44
as in according to the best practices
0:27:50
just one one thing like choice and truck
0:27:52
too but like what's the meta goal this
0:27:55
thing is trying to achieve
0:27:57
okay the ultimate goal is that we want
0:28:08
users to connect and
0:28:13
interact with the board at the same time
0:28:18
right okay so if i move a note here
0:28:20
then on your screen
0:28:23
good okay now it makes more sense so two
0:28:27
people connect at the same time
0:28:40
cool man um by the
0:28:45
me if if if i'm making
0:28:48
no sense because i think i tend to get
0:28:51
carried away into my explaining
0:28:54
zone and then it's really hard for me to
0:28:58
come back unless i'm a
0:29:06
this is basically how we connected to
0:29:17
code as in all offline
0:29:20
but i'll just get on to the
0:29:23
continual part now
0:29:32
we need to make sure that um
0:29:35
there is a lambda that we need to test
0:29:38
and it should give us the
0:29:41
give the response out
0:29:44
yeah yeah it makes sense
0:29:53
this whole template
0:29:57
any sense at the moment but i will come
0:30:03
explain you everything after that
0:30:13
okay so how did he do it oh i was
0:30:21
lambda and it was a medium one
0:30:29
basically what we're
0:30:35
this message as in
0:30:44
want this lambda to be triggered
0:30:52
when we pass the payload
0:30:56
what's the other oh yeah yeah it makes
0:30:59
so the pale load is
0:31:06
uh the json key value paired there yeah
0:31:10
i mentioned earlier on
0:31:16
i'm just checking where do i need to
0:31:18
pick up from because i was following
0:31:28
okay i've got this part here
0:31:33
which is my lambda root handler function
0:31:40
so which one was that one no no no no
0:31:54
resulting that's okay
0:32:00
okay we probably have to
0:32:14
the response was pushed from
0:32:30
trigger the lambda and
0:32:35
make the lamp push the response to our
0:32:39
push the response saying this
0:32:44
response from there like
0:32:47
web socket service sorry
0:32:50
i need to work on my uh
0:32:58
the websocket is gonna call the lambda
0:33:00
is that what you're saying
0:33:06
so when we pause a json request as a key
0:33:10
value pair in that one we can actually
0:33:15
web socket as in which lambda to trigger
0:33:21
and then the websocket api
0:33:24
will actually check if the
0:33:26
lambda is even present or not
0:33:34
send us this message so for example how
0:33:46
is it gonna call for all these sessions
0:33:48
like the websocket or
0:33:50
just once the lambda function
0:33:55
what do you mean by sessions
0:33:58
sorry like everyone who's on the app at
0:34:07
that's a really good question i may not
0:34:09
be able to answer that this time yes
0:34:15
yeah maybe i'll try looking into that
0:34:18
yeah if you can that'd be really awesome
0:34:24
actually this is what we're trying to
0:34:31
so if if the connection is
0:34:35
is connected which
0:34:37
we are getting at the moment and if we
0:34:44
trigger our lambda called test
0:34:48
and then from the lambda it should
0:34:51
trigger this response
0:34:58
function he has it over here
0:35:05
see this test room
0:35:18
is an other concept i will explain it to
0:35:21
you later what is the app id is it the
0:35:24
name and cloud formation or something
0:35:33
that's the websocket api
0:35:41
when it creates a resource yep good
0:35:46
so i'm just checking how to
0:35:50
do this so here's got two routes
0:35:53
okay connect yeah that's fine which i
0:35:58
connect through which is around
0:36:03
connect route okay so i don't i'm
0:36:07
taking this as a connect route
0:36:13
might have confused me
0:36:17
yeah once again i'll get some water for
0:36:43
authorizing custom
0:36:47
connected authorization
0:36:49
okay i don't really need
0:36:52
at the moment authorization
0:36:58
having this lambda
0:37:04
yeah because i need to
0:37:08
i'm gonna just check the thing as well
0:37:24
basically i i just
0:37:26
gave that as a kind of
0:37:33
i don't see any reason why i wouldn't
0:37:39
but it was just a kind of a goal for the
0:37:51
yeah okay cool we're on track
0:37:54
so if i don't give this one and if i
0:37:58
follow this code which he has over here
0:38:05
uh you ran this okay so he's got this
0:38:13
where is this socket from
0:38:15
guess okay context
0:38:18
let me go to his profile and see what's
0:38:21
happening over there
0:38:27
all right template no index
0:38:34
he has this separate one
0:38:38
as that one all right
0:38:46
good to have you may
0:38:58
when you comment it out now
0:39:01
oh he says you commented that
0:39:02
functionality you have it
0:39:05
yes i was recalling ben thanks for
0:39:09
reminding me tori i'm just thinking that
0:39:18
the name of it because on connect
0:39:21
apparently it only connect
0:39:26
but it's not allowed to give any
0:39:31
i'm thinking that i might need to change
0:39:37
okay here here's what we can do
0:39:58
um dory says remember you don't need it
0:40:00
in on connect in the on connect
0:40:05
you can't use it in the on connect
0:40:12
yes so what i was trying to do tori is
0:40:16
i'm actually trying to
0:40:25
no that wouldn't make sense so i guess
0:40:28
what i'm trying to do is
0:40:33
checking if i actually need
0:40:39
all of this to even can
0:40:42
just to connect because
0:40:44
if you see in his repo that i'm
0:40:51
he doesn't have any separate
0:40:55
lambda function where he's just
0:40:58
using it to connect
0:41:00
he's just got this
0:41:05
and also giving the
0:41:07
response out as well um
0:41:15
i'm basically gonna try and do that and
0:41:21
if i mess up or it works
0:41:24
you know all the tools
0:41:27
there's always only two options so yeah
0:41:34
all right and i will give
0:41:38
what has he going the body ah
0:41:40
body is empty string pull
0:41:45
and i can change this one
0:42:00
verb from handler okay um
0:42:03
yeah just we don't okay
0:42:12
so we actually i'm gonna get rid of this
0:42:27
this is a root and
0:42:29
this is actually targeting
0:42:36
tesla lambda integration which is here
0:42:43
what this is doing is
0:42:59
and then this is basically calling
0:43:08
i'm not entirely sure if this would work
0:43:20
and looks like you guys did a lot during
0:43:32
yeah yeah i mean it was a kind of a
0:43:35
really steep learning curve though and
0:43:40
tori would definitely agree on that
0:43:45
well tori has something to say
0:43:47
for the on connect lambda isn't
0:43:51
um all you need in there some logic to
0:43:56
connection id or whatever into your
0:43:58
dynamodb table for
0:44:00
the appropriate board
0:44:02
yes means yeah you're good
0:44:08
nice is that um we need a connection i
0:44:11
need dynamic db table to actually
0:44:16
yes yes correct so what i'm actually
0:44:20
so what tori you you're talking about is
0:44:26
a second step but i'm still on the first
0:44:30
step so i'm i'm kind of really slow at
0:44:46
okay i would have to delete the stack
0:45:08
what are you trying to do with get
0:45:25
the guest shocking context
0:45:30
i would imagine so that's the most
0:45:37
or is it actually get context story yeah
0:45:39
yeah it is get socket context um
0:45:43
what are we trying to do with that
0:45:45
so with the socket content we are
0:45:49
getting everything we need
0:45:52
um to connect to the web socket
0:45:59
giveaways so if you see we are
0:46:06
and the connection id
0:46:09
from the request context object in the
0:46:15
and then what we're doing is we're
0:46:21
uh endpoint which basically comes from
0:46:26
context and kind of really
0:46:39
i would say once is connected then we
0:46:45
a kind of a connection
0:46:50
confirmation that is connected as well
0:46:53
opposed to connection so after
0:46:58
we are sending the connection id and the
0:47:05
so yeah he's asking one more question on
0:47:18
i would probably save from my
0:47:21
instincts i should have just
0:47:25
looked at what this method does but from
0:47:36
connection has been has been made so
0:47:39
post to connection but we can have a
0:47:42
look at that just to confirm it
0:47:45
because i don't want to spread the wrong
0:48:09
yes sense of providing data to the
0:48:19
basically as soon as a client has
0:48:22
connected it will send
0:48:26
whatever it's in this poster
0:48:32
to the client back
0:48:36
so in our case it would be this
0:48:43
um here he has something else to add
0:48:46
because he says okay it looks like
0:48:48
you're sending a message essentially
0:48:57
to the send basically
0:49:10
i actually need to delete the stack
0:49:36
um we might have a for 410 error but um
0:49:40
let's see how it goes
0:49:46
i'm thinking so this is well tory yes
0:49:51
right but i've actually changed
0:50:03
if that actually comes from pretty sure
0:50:23
this is my mentor at my new place
0:50:26
he says that literally every word
0:50:33
he's gonna say that
0:50:36
i don't know how to avoid it i just
0:50:37
don't know like it this is no way i can
0:50:43
you don't mind that
0:50:46
i know that is a proper
0:50:57
i don't know how i feel about it but it
0:51:03
oh right i've got two of these here this
0:51:07
shouldn't probably be there
0:51:14
okay let's try it now
0:51:31
i was hoping they if we
0:51:37
this project before my new work starts
0:51:47
yeah it is what it is
0:51:53
it also makes sense like we took a you
0:51:57
like a gap so it makes kind of sense
0:52:03
i mean that's a part of the process
0:52:06
isn't it as in going through those kind
0:52:09
of hurdles and just
0:52:11
having a contingency plan
0:52:19
oh no no no i don't want to do this
0:52:32
by the way from this
0:52:38
i think last one was just a loud mic
0:52:42
and not in a good way just like
0:52:45
i don't know how to explain it like
0:52:47
there's no there's no quality
0:52:51
i i just don't know how to explain it's
0:52:55
like a difference between uh
0:52:59
which has a super used loud volume
0:53:02
and an iphone like crispier
0:53:05
ah right now i'm not saying okay android
0:53:08
or iphone but yeah
0:53:16
that makes sense completely
0:53:25
you would say that the loss is a lot
0:53:28
that's crispier for sure ah
0:53:33
which brand is your um
0:53:44
all right java yeah
0:53:57
yeah i've heard this brand is really
0:54:00
good as well but um so
0:54:03
like hang on jabra that sounds familiar
0:54:07
i've heard a lot about
0:54:09
this brand yeah right now
0:54:13
i recognize resource types
0:54:19
is unrecognized resource types
0:54:22
integrations where is this
0:54:46
can't wait to what have i done wrong
0:54:55
uh later turn off expressive
0:54:59
um attempt to found error unrecognized
0:55:04
so resource type is unrecognized
0:55:07
that's interesting
0:55:10
websocket connect handler function
0:55:26
that should be right
0:55:46
you have the followings you have an
0:55:49
see if an underbox for me alright
0:55:58
no that's not basically what i'm looking
0:56:21
so why is he saying that
0:56:26
it wasn't given there before
0:56:34
however just for integration
0:56:43
he's taking a plural i should be a
0:56:54
i'll be back one second i'm gonna use
0:57:18
oh here we go cool
0:57:21
that was a problem
0:57:23
you shouldn't have been singular and let
0:57:25
me check the comments
0:57:28
nothing yet which is good
0:58:38
okay open up that one
0:58:50
stage no that's not the one that i need
0:58:58
all right so still create a done
0:59:02
call and we go to school api
0:59:47
let's see what do we get i mean which
0:59:50
area do we get from
0:59:52
not even a one person
0:59:56
yeah it's not a try it's a try um tori
0:59:58
has some comments do you want me to read
1:00:00
them i mean they're big so that's for
1:00:02
sure for sure yeah okay um
1:00:05
this is from the docs
1:00:07
um the codes api gateway calls the
1:00:13
connector out when a persistent
1:00:15
connection between the client and web
1:00:17
socket api is being initiated
1:00:20
that's what a dog says yeah i take that
1:00:22
to mean when a client makes a request to
1:00:25
establish the websocket connection
1:00:27
and do the handshake on
1:00:29
this on connect lambda is immediately
1:00:34
the connection is not established yet
1:00:36
it's still connecting and finishing the
1:00:43
that's why i said i think it's worth you
1:00:48
all right now uh i basically kind of
1:00:53
tories are pointing out so tori do you
1:01:01
when the client sends the request to
1:01:04
connect to the web
1:01:06
socket it will call the on connect
1:01:13
and do the handshake
1:01:21
if you get a 410 error the post to
1:01:25
is gonna fail because you can't send a
1:01:35
because i've just um
1:01:38
tried to connect it and it did it did
1:01:46
really interesting
1:01:53
no if i do on connect
1:01:56
what does this give us
1:02:00
this should actually display the
1:02:02
response from the lambda
1:02:16
and then story says um then my
1:02:18
understanding is wrong
1:02:29
so apparently we don't even need
1:02:34
a lambda in order to connect
1:02:43
this is really weird because
1:02:46
okay um yeah i'll explain what i'm
1:02:50
talking about really briefly
1:02:55
the concept from my understanding works
1:02:58
is that if we have got a
1:03:01
lambda that's called connect
1:03:04
then it would initiate the connection
1:03:08
request and if it's found it then you
1:03:17
we don't i haven't even given it
1:03:22
lambda at all here
1:03:30
lambda function but still the connection
1:03:34
has been made which is here
1:03:40
your watch mean so he says the client
1:03:43
just makes a request to the websocket
1:03:46
url or whatever it's called the lambda
1:03:49
that's why it's lambda is optional so he
1:03:51
agrees that we don't need a language oh
1:03:54
right okay okay i see so we don't really
1:04:00
so that means that api gateway does all
1:04:05
for us automatically
1:04:09
i think that's what he's trying to say
1:04:14
according to the docs there are specific
1:04:16
reasons to have an optional on connect
1:04:18
lambda for example
1:04:20
storing the connection id or whatever
1:04:22
else to store in dynamodb
1:04:24
right right right right i
1:04:29
understand what tori's pointing out from
1:04:33
basically just to make the connection we
1:04:37
don't really need any additional lambda
1:04:39
but if we want to do something
1:04:41
customized yeah straight after the
1:04:44
connection has been made then
1:04:47
we need that custom logic
1:04:53
he's adding a follow-up comment to that
1:04:55
so he says whoops fat fingers
1:05:01
basically triggered by these events
1:05:09
oh right right right right yeah okay
1:05:19
follow-up thing to say triggered
1:05:24
this whole thread he says triggered
1:05:29
yeah true all right
1:05:31
you might understand then whatever it is
1:05:42
um yeah that makes sense
1:05:53
all right yeah wow i've just learned
1:05:56
kind of a new concept wow this is fun
1:06:04
going to the safe space
1:06:12
be right behind you tori over right
1:06:16
in your same space all right um do you
1:06:19
want to do the closing off
1:06:24
i'm trying to learn a lot here um
1:06:26
it's my first time working with it so
1:06:28
today i was just trying to follow follow
1:06:32
what's going on so but yeah now it looks
1:06:35
exciting looks like legit stuff
1:06:39
um that's exciting and uh now good job
1:06:43
we'll see you tomorrow i won't see you
1:06:46
tomorrow but then we'll see you guys
1:06:48
stories on tomorrow so
1:06:51
tune in for both of these
1:06:52
guys um do you have anything to add
1:06:57
just thank you very much for
1:07:00
tuning in and we'll see you
1:07:03
guys back here tomorrow
1:07:05
same place same time and
1:07:10
same task but yeah i think there we go
1:07:13
there we go perfect