Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- deep learning
- For
- Babel
- javascript
- Backbone.js
- docker
- Node
- Redis
- CentOS
- linux
- AWS
- mariadb
- SQL
- NCP
- Machine Learning
- python
- 블레이드 템플릿
- nodejs
- phpredis
- React
- Switch
- webpack
- rabbitmq
- laravel
- nginx
- php
- Go
- 기초 수학
- fastapi
- Redux
Archives
- Today
- Total
728x90
반응형
목록socketio (1)
개발일기

Socket.io란? emit : 데이터를 보내는 함수이다. 클라이언트는 서버에게, 서버는 클라이언트에게 데이터를 보낸다. on : 데이터를 받는 함수이다. 클라이언트 서버로부터, 서버는 클라이언트로부터 데이터를 받는다. Socker.io를 사용하여 서버와 클라이언트 간에 데이터를 주고받는 결과를 확인하기 위해 간단하게 서버와 클라이언트를 생성하여 결과를 확인할 수 있다. 1. 서버 생성 1-0. package.json 생성 npm init -y yarn init -y 1-1. Express 설치 npm install express yarn add express 서버는 노드의 express를 사용하여 서버를 오픈할 것이다. 1-2. Socket.io 설치 npm install socket.io yarn ..
Javascript/React.js
2022. 4. 13. 11:17
728x90
반응형