Peer JS is a Java Script library that simplifies Web RTC peer-to-peer data, video, and audio calls.
What it does is act as a wrapper around the browser’s Web RTC implementation.
In this tutorial we’ll take a look at Peer JS and how it can make our lives easier when implementing Web RTC.
Throughout this tutorial we’ll be building a Web RTC video chat app with messaging features.
If you need a bit of a background regarding Web RTC and peer-to-peer communication, I recommend reading The Dawn of Web RTC and Introduction to the get User Media API.
Before we move on, it’s important that we understand the main tool that we’ll be using.
If you’re new to the chat room scene, you may feel as though you need to take a GCSE in pregnancy/parenting speak, the many acronyms and emoticons that are used!pregnancy test) POV – point of view PP – previous poster PPD – postpartum depression PTB – powers that be RE – reproductive endocrinologist ROFL / ROTFL – rolling on floor laughing SAHD – stay-at-home dad SAHM – stay-at-home mom SAHP – stay-at-home parent SD – sperm donor SIL – sister in law SITD – still in the dark SO – significant other TAFN – that’s all for now TAFT – that’s a frightening thought TBH – to be honest TCOYF – taking charge of your fertility TGIF – thank God it’s Friday TIA – thanks in advance TIC – tongue in cheek TMI – too much information TNX or TNS – thanks TPTB – the powers that be TTBOMK – to the best of my knowledge TTC – trying to conceive TTFN – ta ta for now TTL4N – that’s the lot for now TTUL – talk to you later TYVM – thank you very much US or U/S – ultrasound VBAC – vaginal birth after cesarean section WAH – work at home WFM – works for me WOH – work out of the home WRT – with regard to WTF – what the F***?A post with photos from a supermarket is going viral on online communities.We’ve put together an exhaustive list for you to de-code exactly what’s being talked about in the forums. 2WW – two week wait AAMOF – as a matter of fact AF – Aunt Flo – menstruation/period AFAIK – as far as I know AFK – away from the keyboard AKA – also known as AND – any day now AP – attachment parenting B4 – before B4N – bye for now or before now BAC – by any chance BB or BBS – internet bulletin board BBL – be back later BBT – basal body temperature BC – because, or birth control, or before children BCPS – birth control pills BD – baby dance (sex) BF – breastfeed, or boyfriend BFN – big fat negative (pregnancy test) BFP – big fat positive (pregnancy test) BIL – brother in law BITGOD – back in the good old days BM – breast milk, or bowel movement BRB – be right back BTA – but then again BTDT – been there, done that BTW – by the way BYAM – between you and me BYKT – but you knew that CD – cycle day CF – cervical fluid CIO – cry it out Circ.– circumcise CM – cervical mucus CMIIW – correct me if I am wrong CS or C/S – cesarean section CU – see you CUL – see you later CWIM – see what I mean DC – daycare, dear child DD – darling daughter DF – darling fiance/fiancee DH – darling husband DP – darling partner DPO – days past ovulation DS – darling son DTD – do the deed DTRT – do the right thing DW – darling wife EBF – extended breastfeeding, exclusively breastfeeding EBM – expressed breast milk EDD – estimated due date, or expected date of delivery EOL – end of lecture ESP – especially EWCM – egg white cervical mucus F2F – face to face FAQ – frequently asked questions FF – formula feeding FIL – father-in-law FITB – fill in the blank FOMCL – fell of my chair laughing FT – full time FTM – first time mom FTR – for the record FTTT – from time to time FU or 4U – for you FWIW – for what it’s worth FYI – for your information G – grin GAFIA – get away from it all GFY – good for you GMTA – great minds think alike GOAT – said when member has read all the previous responses before commenting HIPPO – said when a member is commenting without reading previous responses HPT – home pregnancy test HTH – hope this helps HV – health visitor IAC – in any case IAE – in any event IC – incompetent cervix IDTT – I’ll drink to that IIRC – if I remember correctly IMAO – in my arrogant opinion IMCO – in my considered opinion IMHO – in my humble opinion IMNSHO – in my not so humble opinion IMO – in my opinion IMOBO – in my own biased opinion INPO – in no particular order IOW – in other words IRL – in real life ITA – I totally agree IUI – intrauterine insemination IVF – in vitro fertilization IWBNI – it would be nice if IYSWIM – if you see what I mean JIC – just in case JJ or J/J – just joking JK or J/K – just kidding JMHO – just my humble opinion, or just my honest opinion JTYWLTK – just thought you would like to know KWIM – know what I mean L&D – labour and delivery LMAO – laughing my a*se off LO – little one LOL – laughing out loud LP – luteal phase MC or M/C – miscarriage or miscarried MIL – mother-in-law ML – maternity leave MM – mother’s milk MOD – member of the moderating team MW – midwife MYOB – mind your own business N/M – no message N/T – no text NMS – not my style NMSAA – not my style at all NP – no problem NRN – no reply necessary O – ovulation O’d – ovulated OH – other half OIC – oh I see OM – other man OMG – oh my gosh, or oh my god OP – original poster OPK – ovulation predictor kit OT – off topic OTOH – on the other hand OTT – over the top OW – other woman PG – pregnant, or pregnancy PILs – parents in law PMSL – peeing myself laughing PND – post natal depression PNI – post natal illness POAS – pee on a stick (i.e.