Sometimes I am getting the error 'Unhandled rejection Error: Integer is unsafe' when sending JSON data via socket.io 2.0. Here is an example of sending a tweet object that results in such an error.
Example Code: https://gist.github.com/whoisstan/dcba1471094b984514c436fd395364e2
I am using those packages on node 6.11.2:
- "redis": "^2.8.0",
- "socket.io": "~2.0",
- "socket.io-redis": "^5.1.0"
Is the JSON payload simply too big? If yes, how do go about constraining the payload?